OAuth 2.0 Access Token Refresh

RapidIdentity Platform Documentation

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

The OAuth 2.0 access token refresh request is sent by the client to the RapidIdentity token endpoint to obtain a new access token using a refresh token. Refresh tokens are issued only when the client is configured to receive them.

Endpoint

  • Method: POST

  • Path: /idp/profile/oauth2/token

  • Content-Type: application/x-www-form-urlencoded

Request Parameters

ParameterRecommendationDescription
grant_typeRequiredSet to refresh_token.
refresh_tokenRequiredThe refresh token previously issued by RapidIdentity.
scopeOptionalA space-separated list of scopes for the new access token. Cannot exceed the scope of the original grant.

Example Request

POST /idp/profile/oauth2/token HTTP/1.1
Host: rapididentity.example.com
Authorization: Basic ZXhhbXBsZS1jbGllbnQ6c2VjcmV0
Content-Type: application/x-www-form-urlencoded

grant_type=refresh_token
&refresh_token=tGzv3JOkF0XG5Qx2TlKWIA

Refresh Token Rotation

Important:

For public clients, the OAuth 2.0 best current practice (RFC 9700) requires refresh token rotation. Each time a refresh token is used, RapidIdentity issues a new refresh token and invalidates the previous one. The client must update its stored refresh token after each refresh.