question

ed-smith avatar image
ed-smith asked ·

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
topic-default
1 |1000 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.

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/
Share
1 |1000 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.

ed-smith avatar image
ed-smith answered ·
Thank you very much, this was incredibly helpful.
Share
1 |1000 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.

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.