OAuth Authentication not completing | The place for Zendesk users to come together and share
Skip to main content
Oriol11
March 26, 2024
Question

OAuth Authentication not completing

  • March 26, 2024
  • 6 replies
  • 35 views

Hello.

I followed this guide to set up OAuth in my Zendesk app to connect to my own back end.

https://developer.zendesk.com/documentation/apps/app-developer-guide/making-api-requests-from-a-zendesk-app/#managing-third-party-oauth-access-tokens

I have added this to my manifest.json

"parameters": [
{
"name": "token",
"type": "oauth"
}
],
"oauth": {
"client_id": "xxxyyyzzz",
"client_secret": "wwwqqqrrr",
"authorize_uri": "https://mybackend/oauth2/authorize/",
"access_token_uri": "https://mybackend/oauth2/token/",
"scope": "read write"
}

 

I built my app, packaged with `zcli apps:package` and uploaded to Zendesk.

Now when installing the app I see the link "Sign in with my app name".

I click this and it takes me through the login flow which completes successfully, and I see a blank page saying:

OAuth authentication has been completed successfully. You can close the current browser window and continue with the app installation page.

The URL of this page is:

https://<subdomain>.zendesk.com/support/apps/oauth/zis_token?app_id=xxxxx&verification_token=yyyy

I close the tab and go back to my Zendesk apps installation page, but I can't see the green check icon, and if I try to click on Install it says OAuth authentication is required.

What am I missing?

Thank you

6 replies

Oriol11
Oriol11Author
March 26, 2024

Just realised there's an error in the console in the page that says "OAuth authentication has been completed successfully"

Tipene
Employee
April 4, 2024
Hey, Oriol!
 
Can you try re-installing the app again and let me know when you've done that? I'll go ahead and check the logs following that to see if anything stands out.
 
Thanks,
 
Tipene
 
 
Oriol11
Oriol11Author
April 5, 2024

Hi @tipene ! I just tried again. Do you need the app id or subdomain, or anything else?

RASHMI11
March 26, 2025

Hi oriol, got any solution? I am also stucked here.

Trevor25
May 9, 2025

I am also having this issue. Was there a resolution for this?

Oriol11
Oriol11Author
May 13, 2025

I didn't find it. I ended up not using OAuth and using an API key instead