Your SlideShare is downloading. ×
0
BarCamp SD 5 Intro Oauth
BarCamp SD 5 Intro Oauth
BarCamp SD 5 Intro Oauth
BarCamp SD 5 Intro Oauth
BarCamp SD 5 Intro Oauth
BarCamp SD 5 Intro Oauth
BarCamp SD 5 Intro Oauth
BarCamp SD 5 Intro Oauth
BarCamp SD 5 Intro Oauth
BarCamp SD 5 Intro Oauth
BarCamp SD 5 Intro Oauth
BarCamp SD 5 Intro Oauth
BarCamp SD 5 Intro Oauth
BarCamp SD 5 Intro Oauth
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

BarCamp SD 5 Intro Oauth

1,515

Published on

An introduction to OAuth delivered at BarCamp San Diego 5 on 5/30/09

An introduction to OAuth delivered at BarCamp San Diego 5 on 5/30/09

Published in: Technology, Design
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,515
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
7
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Intro OAuth Erik Eldridge Yahoo! Developer Network BarCamp San Diego 5 5/30/09 Oauth image credit: oauth.net
  • 2. Overview <ul><li>Authentication flow (“OAuth dance”) </li></ul><ul><li>Pick an API </li></ul><ul><li>Get a key and secret </li></ul><ul><li>Pick a library </li></ul><ul><li>Example </li></ul><ul><li>References </li></ul>
  • 3. Before we continue… <ul><li>Follow along now: http://www.slideshare.net/erikeldridge </li></ul><ul><li>Start playing: http://test.erikeldridge.com/oauth/barcampsd5 </li></ul><ul><li>Follow me on twitter: http://twitter.com/erikeldridge </li></ul>
  • 4. Flow <ul><li>http://developer.yahoo.com/oauth/ guide/oauth-auth-flow.html </li></ul>
  • 5. Pick an API <ul><li>Example: http://social.yahooapis.com/v1/user/{guid}/connections </li></ul><ul><li>AKA “provider” </li></ul>
  • 6. Get key/secret <ul><li>AKA “consumer” </li></ul><ul><li>Example: </li></ul><ul><ul><li>https://developer.yahoo.com/dashboard </li></ul></ul><ul><ul><li>http://code.google.com/apis/accounts/docs/OAuth.html </li></ul></ul><ul><ul><li>http://twitter.com/oauth </li></ul></ul>
  • 7. Pick an OAuth library <ul><li>http://oauth.net/code </li></ul><ul><li>Native support in many languages </li></ul>
  • 8. Example: Yahoo! + PHP <ul><li>Using OAuth PHP SDK: http://oauth.googlecode.com/svn/code/php </li></ul><ul><li>API: http://social.yahooapis.com/v1/user/{guid}/connections </li></ul><ul><li>Yahoo! OAuth PHP SDK: http://developer.yahoo.com/social/sdk/ </li></ul><ul><li>Live code: http://example.erikeldridge.com/oauth/barcampsd5/ </li></ul>
  • 9. Example: Get Request token <ul><li>Step 2 from: http://developer.yahoo.com/oauth/guide/oauth-auth-flow.html </li></ul><ul><li>Example: http://example.erikeldridge.com/oauth/barcampsd5/ </li></ul>
  • 10. Example: Redirect to provider <ul><li>Step 3 from: http://developer.yahoo.com/oauth/guide/oauth-auth-flow.html </li></ul><ul><li>Example: http://example.erikeldridge.com/oauth/barcampsd5/ </li></ul>
  • 11. Example: Get Access token <ul><li>Step 4 from: http://developer.yahoo.com/oauth/guide/oauth-auth-flow.html </li></ul><ul><li>Example: http://example.erikeldridge.com/oauth/barcampsd5/callback.php </li></ul>
  • 12. Example: Make Oauth-signed request <ul><li>Example: http://example.erikeldridge.com/oauth/barcampsd5/make_request.php </li></ul>
  • 13. References <ul><li>http://oauth.net/ </li></ul><ul><li>http: //oauth .net/documentation/getting-started </li></ul><ul><li>http://en.wikipedia.org/wiki/OAuth </li></ul><ul><li>http://developer.yahoo.com/oauth/ </li></ul><ul><li>http://example.erikeldridge.com/oauth/barcampsd5/ </li></ul>
  • 14. Thank you

×