question

Viresh P avatar image
Viresh P asked ·

Revoking token feature

While calling access token API call successfully getting the access token which is valid for a while for all the RC Apis. But since we get the token, how can we revoke the access token or refresh token if it is compromised.Does RC allows revoking an already generated token like other south servers?

oauth2token
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

· Write an Answer
Anirban avatar image
Anirban answered ·

Any oauth server will have revoking token feature if it generate tokens.

For RingCentral you need to call revoke token endpoint:

/restapi/oauth/revoke
Authorization: Basic M2ZmYjNlMThkZDU4ZDE1YTk2NTIwYmFmNzUzZjBiNzk6MzI5OWQ0NTg5NGU1Njg5ODllOTY1ZTFiMTk5MGU2OTI 
token=<Your token to revoke>


refer the docs here: https://developers.ringcentral.com/api-reference/Revoke-Token

1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys