AADSTS50011 Error When Signing Into Custom App How Do I Resolve Reply URL Mismatch?

Samuel 20 Reputation points
2025-10-18T09:08:25.7533333+00:00

I'm encountering the following error when attempting to sign into a custom web application that is registered in Microsoft Entra ID.

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

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

Answer accepted by question author
VEMULA SRISAI 13,900 Reputation points Microsoft External Staff Moderator
2025-10-18T09:34:20.1733333+00:00

Hello Samuel,

Thank you for posting your questions in the Microsoft Q&A Forum.

The error AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application occurs when the redirect URI your application sends during sign-in does not exactly match any of the URIs registered in Microsoft Entra ID.

Steps to Resolve:

  1. Check the Redirect URI in Your App Verify the redirect_uri parameter your app is using during authentication (e.g., https://yourapp.com/auth/callback).
  2. Update App Registration in Entra ID
    • Sign in to https://entra.microsoft.com.
    • Navigate to App registrations → Select your app → Authentication.
    • Under Redirect URIs, add the exact URI your app uses. Ensure:
    • It matches exactly (including protocol https://, path, and case sensitivity).
    • HTTPS is used (except for http://localhost during development).
  3. Add All Required URIs If you have multiple environments (Dev, Test, Prod), add each redirect URI.
  4. Save Changes and Restart After updating, save the configuration and restart your app or clear browser cache.

For detailed steps please refer to the document:

https://learn.microsoft.com/en-us/troubleshoot/entra/entra-id/app-integration/error-code-aadsts50011-redirect-uri-mismatch

Kindly let us know if the above comment helps or you need further assistance on this issue.

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

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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