Encountering CORS Error When Setting Up Zendesk SSO with AWS Cognito via OpenID | Community
Skip to main content

Encountering CORS Error When Setting Up Zendesk SSO with AWS Cognito via OpenID

  • April 26, 2024
  • 4 replies
  • 0 views

royfancy

Hello,

I am currently attempting to set up Single Sign-On (SSO) in Zendesk using OpenID connected to AWS Cognito. During the OAuth 2.0 authorization process, I am encountering a CORS (Cross-Origin Resource Sharing) error, which is preventing a secure connection from Zendesk to Cognito.

Here are the details of my current setup and the request:

https://{region_Id}.amazoncognito.com/oauth2

Callback URI: https://{zendesk_domain}/access/oidc/callback

  • Error Message: CORS policy error, indicating that our request was blocked by the browser because it does not comply with the Cross-Origin Resource Sharing policy.

I have confirmed that the callback and logout URLs are correctly set in the AWS Cognito's App client settings, and I have checked the allowed origins setting. I would like to understand if there might be other settings that could cause this issue, or if there are recommended steps to try?

Thank you very much for your help!

4 replies

Caroline13

Could you please grab a HAR file to help us investigate? Feel free to send it in an email to me directly if you'd prefer (caroline at zendesk dot com).


Caroline13

We were able to do a little bit more digging and we actually found an issue on our side where we didn't respect the email_verified claim being sent a string. We've made some changes on our end and from what we can tell it should be working as expected for you now! Can you confirm?


royfancy
  • Author
  • May 3, 2024

Thank you for your recent communications and the efforts your team has put into resolving the technical issue we reported.

I am pleased to inform you that after conducting a thorough verification on our end, the changes you implemented have successfully addressed the problem with the email_verified claim. Everything is now functioning as expected.

Your responsiveness and effectiveness in resolving this issue are greatly appreciated. We look forward to continuing our successful collaboration.

Thank you once again for your dedicated support.

Warm regards,


Michael238

Hi, 

We are trying to implement the same thing in cognito but we get the following error:

This derivitec.zendesk.com page can’t be found

No web page was found for the web address: https://derivitec.zendesk.com/access/oidc/callback?code=e510edda-6485-4b6d-9f09-d04136520932

HTTP ERROR 404

 

Could you please assist? 

 

Regards

 

Mike