- Print
- DarkLight
This endpoint provides the ability to verify a token with an auth identity provider and exchange it for Bento OAuth JWT tokens, using the OAuth 2.0 Token Exchange specification. At this point, only the required fields from the specification are implemented, with only Gousto auth tokens accepted. This will be extended over time to support OpenID and OAuth 2.0 tokens from other providers.
The value urn:ietf:params:oauth:grant-type:token-exchange indicates that a token exchange is being performed.
The token to be exchanged.
The identifier for the the subject token. As Gousto is the only supported subject token type, the only supported value is urn:gousto:auth:token-type:access-token.
Token Exchanged
The security token issued by the authorization server in response to the token exchange request.
An identifier for the representation of the issued security token, as specified in Section 3 of RFC-6749. This will always be a JWT formatted access token, urn:ietf:params:oauth:token-type:access_token
A case-insensitive value specifying the method of using the access token issued, as specified in Section 7.1 of RFC-6749. This will always be in the form of a Bearer token.
The validity lifetime, in seconds, of the token issued by the authorization server.
Invalid Authentication Credentials
Internal Server Error