OAuth 2.0 Access Token Response

RapidIdentity Platform Documentation

Solution
Application
Content Type
Technical Documentation
Utilities & Services
ft:locale
en-US

The OAuth 2.0 access token response is returned by RapidIdentity from the token endpoint after a successful access token request. The response contains the access token and, when applicable, a refresh token.

Response Fields

FieldRecommendationDescription
access_tokenRequiredThe access token issued by RapidIdentity.
token_typeRequiredThe type of token issued. RapidIdentity always returns Bearer.
expires_inRecommendedThe lifetime in seconds of the access token.
refresh_tokenOptionalThe token used to obtain a new access token. This is returned only when the client is configured to receive refresh tokens.
scopeOptionalThe scopes granted by the user. This is required if the granted scope differs from the scope requested.

Example Response

HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: no-store

{
    "access_token": "2YotnFZFEjr1zCsicMWpAA",
    "token_type": "Bearer",
    "expires_in": 3600,
    "refresh_token": "tGzv3JOkF0XG5Qx2TlKWIA",
    "scope": "read"
}

Error Response

If the access token request fails, RapidIdentity returns an error response with the following fields:

FieldDescription
errorCommon values are invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, and invalid_scope.
error_descriptionA human-readable description of the error.
error_uriA URI to a page describing the error.