question

Sumarigo-MSFT avatar image
0 Votes"
Sumarigo-MSFT asked amanpreetsingh-msft answered

How to troubleshoot the error AADSTS50011?

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'.

azure-active-directory
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

amanpreetsingh-msft avatar image
1 Vote"
amanpreetsingh-msft answered

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.


image.png (6.1 KiB)
image.png (32.1 KiB)
image.png (34.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.