April 2011

OpenID vs OAuth

by admin on April 25, 2011

OpenID is the technology that makes user to use a common login for different applications and sites.

- User has account at OpenID provider

- When user login from sites that use OpenID, there’s reply party that verify the user’s identity with the Open ID provider

OpenID Flow

- Share secret between relay party and OpenID

- Diffie Hellman Key Exchange

- OpenID checks if Realm and return_to URL match

- Relay Party checks return_to URL, OpenID Identifier, was Nonce never used before, fields signed, signature valid

OAuth on the other hand let applications access resource at the user’s service provider.

- User owns Resource at service provider and then grants consumer (applications, site, etc) access to Resource

OAuth Flow

- user register at some service provider.  Identified by Token/Secret and callback URL

- all subsequent Requests must be signed with Secret, Nonce & Timestamp

 

References:

http://www.slideshare.net/rmetzler/identity-on-the-web-openid-vs-oauth

http://www.openaselect.org/trac/openaselect/wiki/OpenID

http://fireeagle.yahoo.net/developer/documentation/web_auth

{ 0 comments }