Sorry, but we 're having trouble signing you in - AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application

Sarah 161 Reputation points
2021-11-24T22:20:23.747+00:00

In general, I was able to sign in and access the application without any problem. But rarely, I get this error.

If my understanding is correct, I get this error when I click on the link to access other pages before the initial page could load.
Is it possible to add other pages as well in the portal reply URLs (Redirect URLs) ? so that it does not throw error.
For eg: can I add "https://appname.azurewebsites.net" and "https://appname.azurewebsites.net/page2" (which would be the URL of other page in the app).

If my understanding is wrong, May I know how I can go about solving this.
Deployed URL is "http://appname.azurewebsites.net" (here Http)
Azure portal redirect URL and the URL used in the application is "https://appname.azurewebsites.net" (here Https)
Http and Https difference causing this issue ?

Thank you.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
18,683 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 32,541 Reputation points Microsoft Employee
    2021-11-24T23:56:18.487+00:00

    Yes, the http/https mismatch is definitely what's causing the issue here. The URLs need to match exactly for this to work. You can add multiple Reply URLs if you need to as well.

    1 person found this answer helpful.