OIDC/OAuth 2 CompliantThis endpoint is compliant with the OIDC Token Endpoint (Authorization Code Flow) specification and supports the
authorization_codeandrefresh_tokengrant types. In addition, this endpoint also support authenticating machines using the OAuth 2client_credentialsgrant type.
Client AuthenticationConfidential clients (i.e.,
BACKEND_SERVERandMACHINE_TO_MACHINEclient types) must supply their client ID and secret in theAuthorizationheader using the Basic Authentication scheme. For example,Authorization: Basic base64Encode(<client_id>:<client_secret>). Public clients that don't have a client secret can omit theAuthorizationheader but must provide their client ID in the request body.
Creates tokens for the specified grant type. The fields required in the request differ depending on the provided grant type.
Supported Grant Types:
authorization_code: The client uses the authorization code sent in the callback request to retrieve tokens on behalf of a user.client_credentials: The client can request an access token for itself using only its client credentials.refresh_token: If theoffline_accessscope was specified in the authorization request, refresh tokens are issued to the client in the token response, and can be used to obtain a new access token when the current access token becomes invalid or expires.