CallbackRouteError on SSO login (Azure/Entra) via Cognito Hosted UI — works for email/password #13071
Unanswered
jharman-amergis
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello community,
I’m using NextAuth with the Cognito provider.
• Regular Cognito login (email/password) works fine.
• SSO login via Cognito Hosted UI (federated with Azure/Entra) fails at the callback with a CallbackRouteError (no NextAuth callbacks are triggered).
What I’ve tried:
• Callback URIs and OAuth scopes (openid, email, profile) are correct.
• Cognito attribute mapping for email, name etc. looks fine.
• Multiple Azure users tested.
Has anyone gotten this exact setup working? Thank you, greatly appreciate any guidance.
Beta Was this translation helpful? Give feedback.
All reactions