question

Kenneth Pinos avatar image
Kenneth Pinos asked Anirban answered

Can you provision an auth token manually without using a callback URL?

Hi!

With the Zoho API you can set up as a "Self Client" to obtain an authorization token. Is it possible to do this for the RingCentral API?

Here's the Zoho doc (scroll to the bottom): https://www.zoho.com/accounts/protocol/oauth-setup.html

Thanks!

getting started
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.

Phong Vu avatar image
Phong Vu answered

Hi Kenneth,

So far I have not seen a feature like that for RingCentral authorization flow. So my answer would be that it is not possible.

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.

Byrne Reese avatar image
Byrne Reese answered

@Kenneth Pinos There is not a user interface in RingCentral yet to provision such a token for re-use. However, one can do this via a script. The app needs to be configured for Password-based authentication. I would then go through the auth flow:

1. Pass in username/password.
2. Get auth token.
3. Exchange auth token for access token.

Now, tokens of this type do not last forever, so they would need to be refreshed from time to time. But in theory, you could take the access token you receive and stash it into a config file somewhere for re-use. If you were using a vault solution of somekind, you could have an offline process refresh the token in storage so that it is always fresh.

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.

Anirban avatar image
Anirban answered

For a OAuth security of Authorization code grant_type, there will be a callback url followed to provide the token which later exchanged with access_token.

You cannot do anything other as this is the core concept of Authorization code grant_type

https://developers.ringcentral.com/guide/authentication/auth-code-flow



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.

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