Silicon Valley Code Camp 2009: OAuth: What, Why and How
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Silicon Valley Code Camp 2009: OAuth: What, Why and How

on

  • 2,378 views

OAuth : What, Why and How

OAuth : What, Why and How

Presentation for Silicon Valley Code Camp 2009

Statistics

Views

Total Views
2,378
Views on SlideShare
2,347
Embed Views
31

Actions

Likes
2
Downloads
35
Comments
1

4 Embeds 31

http://www.linkedin.com 14
http://coderwall.com 12
https://www.linkedin.com 3
http://www.slideshare.net 2

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

CC Attribution License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • The diagram in there is 1.0 flow, while the text mentions 1.0a. I did not put the 1.0a diagram in there to ensure the audience understands 1.0 flow to appreciate 1.0a.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Silicon Valley Code Camp 2009: OAuth: What, Why and How Presentation Transcript

  • 1. Manish Pandit Silicon Valley Code Camp 2009 10/03/2009 1:15 PM
  • 2.
    • Web 2.0 and Authentication Models
    • OAuth Advantages
    • OAuth Dance
    • Industry Adoption
    • Links and References
  • 3.
    • Traditional Authentication methods:
      • HTTP Basic Auth
      • UserID and Password
    • Problems
      • Does not bode well with mesh-ups and APIs
      • Insecure when used as a proxy to the user by third party applications
      • Does not have an authorization model
  • 4.
    • Terminology
      • Identity and Service Providers
      • Consumers
      • Resource Owners or Users
    • Problem
      • Enable third party applications written against the Service Provider’s API to be used securely by the Provider’s users.
      • The user should be able to authenticate himself on the Provider’s site, thereby not having to provide the credentials to 3 rd party applications.
      • The user should be able to control what functionality/data is visible to the 3 rd party applications (Authorization)
  • 5.
    • A mechanism for the user to get authenticated on the Identity/Service Provider
    • A mechanism for the requesting application to act on behalf of the user, within the scope of authorization
    • Use of tokens instead of username/password credentials
    • Provider controls the TTL for the tokens, and the applications
  • 6.
    • Web 2.0 and Authentication Models
    • OAuth Advantages
    • OAuth Dance
    • Industry Adoption
    • Links and References
  • 7.
    • Provides delegated authentication
    • Built on top of HTTP
    • Supports secure communication even over plain HTTP
    • Evolved as a standard with wide adoption and support
  • 8.
    • Web 2.0 and Authentication Models
    • OAuth Advantages
    • OAuth Dance
    • Industry Adoption
    • Links and References
  • 9.
    • Provider is the application that exposes the secure API and user’s identity
    • Consumer is the application that is written against the Provider’s API, intended for Provider’s users.
    • Users or resource owners are registered users of the Provider
    • Consumer Key is an identifier for the consumer
    • Consumer Secret is a shared-secret between the provider and the consumer
    • Signature Methods are encryption methods used by OAuth communication. Methods suggested are PLAINTEXT, RSA-SHA1 and HMAC-SHA1
    • OAuth Endpoints are endpoints exposed by the provider to facilitate OAuth dance
    • Callback URL is an endpoint at the Consumer that is invoked by the Provider once the user authorizes the Consumer. If none, the value is oob, or Out-of-Band
  • 10.
    • Request Token
      • Short lived identifiers which start the handshake
      • Must be converted to Access Token in order to gain access to a user’s resources
    • Access Token
      • Long lived identifiers that are tied to the user’s identity
      • Are used to access a user’s resources (data) at the Provider on behalf of the user
  • 11.
    • Get request token
    • Authorize token
    • Get access token
  • 12.
    • The endpoint provides consumers to get an unauthorized request token by providing their consumer key and other parameters as a signed request
    • The credentials can be passed via HTTP Header, POST body or GET QueryString
    • The request includes an oauth_signature which is calculated by following the steps defined in the spec. Use libraries instead of writing your own signing implementations.
    • The response has an unauthorized request token as well as a token secret, and a flag indicating if the callback was accepted.
  • 13.
    • The step authorizes an unauthorized request token retrieved via previous request.
    • The endpoint takes the unauthorized request token – or the user can enter one manually if supported.
    • The Authorize Token endpoint then redirects the user to the Provider’s login page
    • The user logs in, and is asked to authorize the consumer (and hence the request token)
    • Once the user authenticates, and authorizes access to the consumer, the provider calls the callback URL provided earlier with a verifier code. This verifier code, along with other credentials is used to get an Access Token.
  • 14.
    • At this step, the now authorized request token is exchanged for an access token
    • The access token acts as a user’s credential for any further transactions
    • The endpoint takes the request token and the verifier code returned via the callback, or manually if callback is not supported. The request is signed with consumer secret and the request token’s secret.
    • The Provider returns an access token and a token secret.
    • The token secret is used to sign the requests along with the consumer secret.
  • 15.
    • Now that the consumer has the access token, the user’s resources can be requested via signed requests to the provider.
    • The user should be able to unauthorize the consumer by revoking the access token.
    • The access token has a time to live which is typically longer than the request token
  • 16.  
  • 17.
    • Web 2.0 and Authentication Models
    • OAuth Advantages
    • OAuth Dance
    • Desktop Applications
    • Industry Adoption
    • Links and References
  • 18.
    • OAuth is used by many sites that expose APIs
      • Twitter
      • Google
      • Netflix
      • MySpace
      • PhotoBucket
  • 19.
    • Web 2.0 and Authentication Models
    • OAuth Advantages
    • OAuth Dance
    • Desktop Applications
    • Industry Adoption
    • Links and References
  • 20.
    • Spec: http://oauth.net/core/1.0a
    • Editor’s Blog: http://hueniverse.com/oauth
    • Codebase: http://code.google.com/p/oauth
    • Group: http://groups.google.com/group/oauth
    • IETF Effort: https://www.ietf.org/mailman/listinfo/oauth
    • http://tools.ietf.org/html/draft-ietf-oauth-authentication-01
    • http://tools.ietf.org/html/draft-ietf-oauth-web-delegation-01
  • 21.  
  • 22.  
  • 23.