My account

Retrieve the access token issued by a third-party enterprise SSO provider

Changed on

This API retrieves the access token issued by a third-party enterprise SSO provider for a given SSO connector ID. Access is only available if token storage is enabled for the corresponding connector. When a user authenticates through a SSO provider, Logto automatically stores the provider’s tokens in an encrypted form. You can use this API to securely retrieve the stored access token and use it to access third-party APIs on behalf of the user.

get/api/my-account/sso-identities/{connectorId}/access-token

Request

  • Base URL: https://[tenant_id].logto.app
  • URL: https://[tenant_id].logto.app/api/my-account/sso-identities/{connectorId}/access-token
  • Auth: OAuth 2 (client credentials, token URL /oidc/token, scopes: all)

Path parameters

connectorIdstring required

The unique identifier of the connector.

Response

The access token was retrieved successfully.

access_tokenstring required
token_typestring

Changes

    • breaking

      response property scope list-of-types was widened by adding types array to media type application/json of response 200