Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed scope=PRODUCTION as the scope is not required from API-M 1.8 onwards.

...

  • 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

...