single sign on for api access

  • 1
  • Question
  • Updated 1 year ago
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
Photo of Ed Smith

Ed Smith

  • 182 Points 100 badge 2x thumb

Posted 1 year ago

  • 1
Photo of Tyler Long

Tyler Long, Official Rep

  • 6,288 Points 5k badge 2x thumb
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/
(Edited)
Photo of Ed Smith

Ed Smith

  • 182 Points 100 badge 2x thumb
Thank you very much, this was incredibly helpful.