Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

OAuth2 and LinkedIn


Published on

A brief hackday presentation on using the LinkedIn Platform with OAuth2

Published in: Technology

OAuth2 and LinkedIn

  1. 1. Using Oauth2 with LinkedIn Kamyar Mohager LinkedIn Platform Team Developer Relations
  2. 2. Why botherauthorizing? Developer Relations
  3. 3. Not secure Developer Relations
  4. 4. We need a way toconnect our LinkedIn identity securely to an application… Developer Relations
  5. 5. OAuth 1.0a Developer Relations
  6. 6. Secure, but…•  Relies on a calculated signature to ensure security between server and consumer•  Secure for end user but pain for developer to implement•  Difficult to debug 401 unauthorized when signature is bad (nonce, timestamp, etc)•  Not all OAuth libraries are created equal Developer Relations
  7. 7. OAuth 1.0a SignatureSignature Base String POST& Signature wUGmSixTSUTTKA92Ytxj6rMeAAM= HTTP Authentication Header OAuth oauth_nonce="511F013D-C950-46EF-B8FF-DE48AA6708D8"oauth_timestamp="1355356360" oauth_version="1.0"oauth_signature_method="HMAC-SHA1" oauth_consumer_key=”XXXXXXXXX"oauth_token="935e5a8b-4787-4792-a377-4b0e8bae5029"oauth_signature="wUGmSixTSUTTKA92Ytxj6rMeAAM%3D" URL Developer Relations
  8. 8. OAuth 2.0•  Easier to code•  Relies on SSL instead of complicated signatures•  Still provides secure authorization for end user•  Supports scopes for granular member permissions Developer Relations
  9. 9. LinkedIn + OAuth 2.0 How easy is it to authorize a LinkedIn user to my app?? Developer Relations
  10. 10. Step 1REGISTER YOUR APP Developer Relations
  11. 11. Go to to register your app Developer Relations
  12. 12. Step 2GET AN AUTHORIZATION CODE Developer Relations
  13. 13. Redirect user to login dialog Developer Relations
  14. 14. User grants access Developer Relations
  15. 15. The redirected URL Developer Relations
  16. 16. Step 3UPGRADE AUTH CODE FOR AN ACCESSTOKEN Developer Relations
  17. 17. It’s all about SSL Developer Relations
  18. 18. You’re auth’dResponse Developer Relations
  19. 19. So what’s the gist of all this? Developer Relations
  20. 20. Open Source Libraries• (ruby)• (python)• (php)• social (java) Developer Relations
  21. 21. Questions?" Thanks! Developer Relations