How to pull my OAuth token when I'm logging in using Okta?
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
-
Hey,
When using SAML you can not use the session token for auth to connect to the Zendesk API:
https://support.zendesk.com/hc/en-us/articles/231530827
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 your_email@domain.com/token.So there is a session between session token for Auth and Zendesk API access.
-
Hi @..., we are having a similar kind of requirement. By any chance did you find any workaround? Thanks.
-
Hey Shweta,
Was the solution provided by Thomas not helpful in this case?
-
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.
4 Comments