Question
How can I enable refresh tokens to be returned from the auth API?
Answer
The below operation refreshes the access token obtained from previous authentication (obtain an access token, refresh token).
If refresh token operation is passed successfully then the response will contain a JSON with the same structure as in Obtain Access Token operation. That same token is valid until the token expires or is revoked.
POST {AuthServerURL}/oauth/token?grant_type=refresh_token&refresh_token=676742af-989b-4d40-b7cc-f69ccadd45ea
Headers: Authorization: Basic cmVsdGlvX3VpOnNlY3JldA==
Body:
{
"access_token":"204938ca-2cf7-44b0-b11a-1b4c59984512",
"token_type":"bearer",
"refresh_token":"676742af-989b-4d40-b7cc-f69ccadd45ea",
"expires_in":3599,
"scope":"configuration_api entities_api graphs_api groups_api interactions_api relations_api"
}
Comments
Please sign in to leave a comment.