Skip to main content

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

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/
Thank you very much, this was incredibly helpful.

Reply