Redirected to Microsoft dashboard instead of web app when initially authenticating with B2B SSO to azure.

Morten Freil Krogstrup 0 Reputation points
2024-09-18T09:10:28.31+00:00

We are having an issue setting up an SSO connection between our web app and azure.

Our app uses auth0 for authentication. We've set up an Azure AD enterprise connection in Auth0.

In general everything works as it's supposed to except for one issue: If the user is not currently logged in on Microsoft/Azure side he is shown the microsoft login prompt. He then inputs it's email and password and after successfully logging in, is then redirected to his/her owns Microsoft dashboard instead of being redirected to our own App/Auth0. Weirdly enough the user is also logged in, simultaneously on our own app, as we've noticed, with the browser network devtools, during the MS login process, callbacks are being made to Auth0 that authenticate the user. Unfortunately it doesn't actually redirect the user to our own App.
We can confidently rule a misconfiguration of the replyUri/RedirectUri on the Azure side, as seen by the fact that the user is actually authenticated on 'our' side. If the user is already logged in on the Microsoft/Azure side when logging in on our App, the flows works correctly and user is correctly redirected to our app. It's only when the user has to actually input the email and password on the Microsoft prompt that the issue occurs.

Any help with this issue would be greatly appreciated.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,759 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,715 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.