GET
request to the /authorize
endpoint with the following additional parameters:Parameter | Description |
---|---|
connection | The name of a social identity provider. In this case, google-oauth2 . |
connection_scope | Requests additional scopes to be authorized for the connection. In this case, it includes the Google Calendar API scopes. Note: At runtime, the list of connection scopes is merged with the scopes you statically configured for the connection. Whenever the user is redirected to authorize this connection, Auth0 will always request the scopes you selected. To learn more, read Configure Token Vault. |
scope | Requests Auth0 scopes to be authorized for the application. Include offline_access to get an Auth0 refresh token from the Auth0 Authorization Server. |
/oauth/token
endpoint with the authorization code, application’s , and application’s credentials, such as or Private Key .
/oauth/token
endpoint with the following parameters:Parameter | Description |
---|---|
grant_type | The grant type. For Token Vault, set to urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token |
client_id | Client application ID |
client_secret | Client secret. Note: You can use any client authentication method to get a federated access token. |
subject_token_type | Type of subject token. For Token Vault, set to refresh token: urn:ietf:params:oauth:token-type:refresh_token |
subject_token | The Auth0 refresh token that the Auth0 Authorization Server validates to identify the user. |
requested_token_type | The requested token type. For Token Vault, set to federated access token or http://auth0.com/oauth/token-type/federated-connection-access-token |
connection | The connection name, in this case, google-oauth2 . |
login_hint | (Optional) The user ID for the identity provider. Only use login_hint if the user has several accounts from the same connection. For instance, a user may connect their work and personal Google account. |
identities
array contains a user account with the connection name passed in the authorization request.login_hint
, Auth0 looks for an identity matching both the connection name and the login_hint
.401
status code with an error message.