GET
/v1/mgmt/user/provider/token

Authorization

Descope Project ID and Management Key
AuthorizationBearer <token>

Project ID:Management Key as bearer token.

In: header

Query Parameters

loginId?string
provider?string
withRefreshToken?boolean
forceRefresh?boolean

Get an existing user's provider token, using a valid management key.

This API endpoint will loads the user's access token generated by the OAuth/OIDC provider, using a valid management key. When querying for OAuth providers, this only applies when utilizing your own account with the provider and have selected Manage tokens from provider selected under the social auth methods.

Query Params

  • loginId - The loginId of the user you want to get the provider token for.
  • provider - The provider you want to get the token for.
  • withRefreshToken (optional) - set to true to also return the refresh token.
  • forceRefresh (optional) - set to true to force a refresh of the token.

See also

curl -X GET "https://api.descope.com/v1/mgmt/user/provider/token"
{  "provider": "string",  "providerUserId": "string",  "accessToken": "string",  "expiration": 0,  "scopes": [    "string"  ],  "refreshToken": "string"}
export interface Response {provider?: stringproviderUserId?: stringaccessToken?: stringexpiration?: numberscopes?: string[]refreshToken?: string}
Was this helpful?