- 
                Notifications
    
You must be signed in to change notification settings  - Fork 194
 
Authentication
        monken edited this page Aug 9, 2011 
        ·
        7 revisions
      
    api.metacpan.org implements an OAuth 2.0 Server and holds the user data. It helps a great deal to know the spec (http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-4.1).
The user data consists of
Unique identifier for the user
List of authentication providers the user has authorized against. Each entry consists of:
- 
name
Name of the authentication provider (twitter, pause, facebook, et al)
 - 
key
Key provided by the authentication provider that identifies the user
 - 
extra
Extra information that is available from the provider
 
list of access tokens for each front-end the user is connected with
holds the temporary OAuth code
The authentication process works as follows:
- The user clicks on "Twitter" as authentication method on metacpan.org
 - She is redirected to api.metacpan.org