question

Tanmay Kumar avatar image
Tanmay Kumar asked Anirban Sen Chowdhary 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?

oauth2
1 |1000

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 Sen Chowdhary avatar image
Anirban Sen Chowdhary 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 |1000

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.