question

ed-smith5674 avatar image
ed-smith5674 asked ed-smith5674 answered

single sign on for api access

My company manages access to the developer account via single sign on (OKTA). Is it still possible for me to set up a connection to the api? My password is not visible to me, so I'm not sure how to pass in my user credentials...


I'm attempting to use the python SDK.


Thanks for your help

sdk
1 |3000

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

Tyler Liu avatar image
Tyler Liu answered
You can use the Authorization Code Flow which you don't need to pass in your password. 

Read the documentation and write code. You can reference code here: 

Step 1: build an authorize uri:  https://github.com/tylerlong/ringcentral-python/blob/master/ringcentral_client/rest_client.py#L73-L8...
Step 2: redirect user to authorized uri in browser
Step 3: when user is redirected back, you will be able to get an auth_code, invoke this:  https://github.com/tylerlong/ringcentral-python/blob/master/ringcentral_client/rest_client.py#L35-L4...

Please note that, code sample above is from an UNOFFICIAL python SDK. The official one doesn't have any helper methods for authorization code flow.

Here is a tutorial in Node for your reference:  https://ringcentral-tutorials.github.io/authorization-code-flow-nodejs-express-demo/
1 |3000

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

ed-smith5674 avatar image
ed-smith5674 answered
Thank you very much, this was incredibly helpful.
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