How to troubleshoot the error AADSTS50011?

Sumarigo-MSFT 43,401 Reputation points Microsoft Employee
2021-09-27T16:07:49.453+00:00

I am getting an error AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'.

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

Accepted answer
  1. AmanpreetSingh-MSFT 56,301 Reputation points
    2021-09-27T16:11:40.407+00:00

    This error occurs when the redirect URI/reply url in the authentication request doesn't match with the redirect uri(s) registered in the application registered in Azure AD. In order to troubleshoot this error, you need to follow below steps:

    Setup:
    • Download and install Fiddler from here: https://www.telerik.com/fiddler
    • Follow these instructions to enable HTTPS capture: https://docs.telerik.com/fiddler/configure-fiddler/tasks/DecryptHTTPS (do step 1 and 2)
    To get traces:
    • Start fiddler (it will start capturing)
    • Repro the issue.
    • Stop fiddler capturing by hitting the F12 key.

    Look for the traffic to login.microsoft.com, specifically for Authorize and/or Token endpoint as highlighted below:

    135562-image.png

    On the right pane, notice the redirect_uri under Inspectors > WebForms tab, as highlighted below:

    135536-image.png

    Once this is identified, you need to navigate to:

    Azure Portal > Azure Active Directory > App Registrations > Search and open the application > Authentication > Under Redirect URIs, make sure that the redirect uri highlighted above matches with one of the registered redirect uri.
    135490-image.png

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful