How to pull my OAuth token when I'm logging in using Okta?


  • Thomas Verschoren
    Community Moderator


    When using SAML you can not use the session token for auth to connect to the Zendesk API:

    What are my credentials for API access when using SSO/Google/MS to sign in?
    To access the API you will need to use an API token along with your agent or admin email address on the account. Authentication for API access would then be formatted as

    So there is a session between session token for Auth and Zendesk API access.

  • Shweta

    Hi @..., we are having a similar kind of requirement. By any chance did you find any workaround? Thanks.

  • Brett Bowser
    Zendesk Community Manager

    Hey Shweta,

    Was the solution provided by Thomas not helpful in this case?

  • Groffer Anderson

    Hey @..., Sorry for the delayed response. We could not find anything exactly as per our requirements. So, We're using a custom login on our support as of now, This helps me login using Okta ( with the Okta Auth library) and I'm sending the same credentials to my server. I use these credentials on the server to get the OAuth token from Zendesk using password grant. 


Please sign in to leave a comment.

Powered by Zendesk