Refresh Token

Returns an access code, along with a refresh token

In order for a refresh token to be returned, “offline_access” scope must be included in the token request, as well as set on the client record.

URL

https://{{HOST}}/idm/ims/connect/token

Method

POST

Required IMS Scopes

  • offline_access

Request Header Parameters

Type Value Description
Authentication Basic {basic-auth}
required
Description
Content-Type application/x-www-form-urlencoded
required
Description

Request Body Parameters

Name Value Type
grant_type
required
refresh_token string
refresh_token
required
{refresh_token} string

Example

Request

curl -X POST 
  'https://{{HOST}}/Identity/ims/connect/token' 
  -H 'Authorization: Basic {basic-auth}' 
  -H 'Content-Type: application/x-www-form-urlencoded' 
  -d 'grant_type=refresh_token&refresh_token=0a35af6a29deb0c1b6ea6c69e70f1653'

Response

{
    "id_token": "{{id_token}}",
    "access_token": "{{access_token}}",
    "expires_in": 3600,
    "token_type": "Bearer",
    "refresh_token": "8822026232a8eb75a8b14a0ae20b6ef9"
}

Errors

Error Description
invalid_grant Could be wrong refresh token
unsupported_grant_type grant_type needs to be “refresh_token”

Response Body Parameters

Name Description Schema
id_token Id Token string
access_token New Access Token to use for authentication string
expires_in Seconds till the token expires int
token_type Type of token string
refresh_token Token to use to refresh the token on the next refresh call string