How to pull my OAuth token when I'm logging in using Okta? | Community
Skip to main content

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

  • January 27, 2021
  • 3 replies
  • 0 views

We've build a custom support portal for our agents that accepts login through Okta. We have added Zendesk to out Okta applications. Once our agent logs in on our support portal, they have access to Zendesk console whenever they redirect to it. However, we want to make a few API calls from the support portal to Zendesk (once the user is logged in). To make these API calls we have no tokens available. How can I extract my Auth token for Zendesk when I login using Okta? 

Note: We cannot use the Authorization grant flow or implicit grant flow (we do not want to redirect our users to "Accept" access page). We also cannot use the password grant, as Okta takes care of the login and credentials. 
Ref : https://support.zendesk.com/hc/en-us/articles/203663836-Using-OAuth-authentication-with-your-app 

3 replies

  • February 16, 2021

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


Brett13
  • Community Manager
  • February 25, 2021

Hey Shweta,

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


  • Author
  • February 25, 2021

Hey @Shweta, 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.