...
Send a
POST
request to https://auth.requirementyogi.com/realms/ry-cloud/protocol/openid-connect/token with the following information:Headers:
Content-Type
:application/x-www-form-urlencoded
Data:
client_id
:backend-client
grant_type
:refresh_token
refresh_token
: the refresh token you received when your retrieved an access token
Code Block | ||
---|---|---|
| ||
curl -L 'https://auth.requirementyogi.com/realms/ry-cloud/protocol/openid-connect/token' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d 'client_id=backend-client' \ -d 'grant_type=refresh_token' \ -d 'refresh_token=YOUR_REFRESH_TOKEN' |
If the request is successful, you will receive a response that looks like this:
Code Block | ||
---|---|---|
| ||
{ "access_token": "YOUR_NEW_ACCESS_TOKEN", "expires_in": 300, "refresh_expires_in": 1800, "refresh_token": "YOUR_NEW_REFRESH_TOKEN", "token_type": "Bearer", "not-before-policy": 0, "session_state": "3b2a9f95-1521-4cf8-a3ac-36e1aa01c36c", "scope": "email profile" } |
...