OAuth2Models.ini

Top  Previous  Next

OAuth2Models.ini is a file is distributed with the z/Scope Anywhere installation that has all the information of the default available logins:

 

[Google]

ClientID =

ClientSecret =

AuthorizationParameters = scope=https://www.googleapis.com/auth/userinfo.email&approval_prompt=auto

AuthorizationURL = https://accounts.google.com/o/oauth2/auth

TokenValidationURL = https://accounts.google.com/o/oauth2/token

ProfileValidationURL = https://www.googleapis.com/oauth2/v1/userinfo

UsernameField = email

 

[Facebook]

ClientID =

ClientSecret =

AuthorizationParameters = scope=email

AuthorizationURL = https://www.facebook.com/dialog/oauth

TokenValidationURL = https://graph.facebook.com/oauth/access_token

ProfileValidationURL = https://graph.facebook.com/me?

UsernameField = email

 

[LinkedIn]

ClientID =

ClientSecret =

AuthorizationURL = https://www.linkedin.com/uas/oauth2/authorization

AuthorizationParameters = state=HIJK98sDT88jnS23S&scope=r_emailaddress

TokenValidationURL = https://www.linkedin.com/uas/oauth2/accessToken

ProfileValidationURL = https://api.linkedin.com/v1/people/~:(emailAddress)?format=json

UsernameField = emailAddress

 

[Dropbox]

ClientID =

ClientSecret =

AuthorizationURL = https://www.dropbox.com/1/oauth2/authorize

AuthorizationParameters =

TokenValidationURL = https://api.dropboxapi.com/1/oauth2/token

ProfileValidationURL = https://api.dropboxapi.com/1/account/info

UsernameField = email

 

[Azure]

ClientID =

ClientSecret =

AuthorizationURL = https://login.microsoftonline.com/[Directory ID]/oauth2/authorize

AuthorizationParameters =

TokenValidationURL = https://login.microsoftonline.com/[Directory ID]/oauth2/token

TokenValidationParams = resource=https://graph.windows.net/

ProfileValidationURL = https://graph.windows.net/me?api-version=1.6

ProfileValidationDefaultParams = 0

UsernameField = mail

 

 

 

Use this file as a template and edit it in order to add new authentication methods or ask your authentication provider for different data.

 

 

Read More:

Authentication Methods - OAuth 2.0
CSS for SSO Options