...
- 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 have. - headers -
Authorization :Basic <base64 encoded string of consumer-key:consumer-secret>, Content-Type: application/x-www-form-urlencoded
. Replace<base64-encoded string-of-consumer-key:consumer-secret>
as appropriate.
...
Code Block |
---|
curl -k -d "grant_type=refresh_token&refresh_token=<retoken>&scope=PRODUCTION" -H "Authorization: Basic SVpzSWk2SERiQjVlOFZLZFpBblVpX2ZaM2Y4YTpHbTBiSjZvV1Y4ZkM1T1FMTGxDNmpzbEFDVzhh, Content-Type: application/x-www-form-urlencoded" https://gateway.api.cloud.wso2.com/token |
...
Code Block |
---|
curl -k -d "token=<ACCESS_TOKEN_TO_BE_REVOKED><access-token-to-be-revoked>" -H "Authorization: Basic Base64Encoded(Consumer -key:consumer -secret)" https://gateway.api.cloud.wso2.com/revoke |
...