question

Kt109 avatar image
Kt109 asked Anirban answered

How to remove refresh token from oauth call

I am able to generate oauth tokens from the url https://platform.devtest.ringcentral.com/restapi/oauth/token successfully.

However I can see both refresh token and access token is generated in the call.

Can we remove the refresh token during the oauth call so that only access token is generated.

I have seen this feature of suppressing and disabling refresh token in other oauth servers.

Does it apply in ringcentral too?

authentication
1 |3000

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

1 Answer

Anirban avatar image
Anirban answered

Yes, refresh tokens can be disabled by setting the TTL (time to live) for the refresh_token_ttl to zero

example:

username=<username>&password=<password>&extension=<extension>&grant_type=password&refresh_token_ttl=0

refresh_token_ttl=0

1 |3000

Up to 8 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