...
To use this grant type, you need a refresh token, using which you can get a new access token and a refresh token. This can be done by issuing a REST call to the Token API through a REST client like cURL, with the following parameters:
- The Token API URL is
https://gateway.api.cloud.wso2.com/token
. - payload -
"grant_type=refresh_token&refresh_token=<retoken>&scope=PRODUCTION"
. Replace the<retoken>
value with the refresh token that you generate through the UI. - headers -
Authorization :Basic <base64 encoded string>, Content-Type: application/x-www-form-urlencoded
. Replace<base64 encoded string>
as appropriate.
For example, the following cURL command can be used to access the Token API and grant a refresh token.
...