identities
array on the user
object under the element for the particular connection. To securely access tokens for a specific user, you need an access token for the Management API that includes the read:user_idp_tokens
scope. Then, you can make an HTTP GET call to the Get a User endpoint to retrieve the tokens.
For admin users of Enterprise connections set up using an consent flow, the identity provider tokens are available in the connection
object. To securely access tokens for a connection, you need an access token for the Management API that includes the read:connections
scope. Then, you can make an HTTP GET call to the Get a Connection endpoint to retrieve the tokens.
access_type=offline
, as well the connection_scope
parameter with required scopes, when calling the Auth0 /authorize
endpoint)