single sign on for api access

  • 1
  • Question
  • Updated 2 years 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 2 years ago

  • 1
Photo of Tyler Long

Tyler Long, Official Rep

  • 9,828 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:
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:

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:
Photo of Ed Smith

Ed Smith

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