Recent searches
No recent searches
OAuth Authentication not completing
Posted Mar 26, 2024
Hello.
I followed this guide to set up OAuth in my Zendesk app to connect to my own back end.
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
1
3
3 comments
Oriol Pericas
Just realised there's an error in the console in the page that says "OAuth authentication has been completed successfully"
0
Tipene Hughes
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
0
Oriol Pericas
Hi Tipene Hughes ! I just tried again. Do you need the app id or subdomain, or anything else?
0