Microsoft 365 sign-in (Entra ID)

AADSTS50011: redirect URI (reply URL) mismatch in Microsoft Entra ID

AADSTS50011 means the redirect URI or reply URL sent by an app does not match the app registration in Microsoft Entra ID. How to find the URI and fix it.

By EpiFive Editorial TeamSources checked How we check our guides

What the error means

AADSTS50011 is the Microsoft Entra code InvalidReplyTo. When an app sends a user to Microsoft Entra ID to sign in, it includes the address the user should return to afterwards. Microsoft Entra ID only sends the user back to addresses that are registered for that application. If the address in the request is not on the list, the sign-in stops with AADSTS50011 instead of handing a token to an unknown location.

Microsoft documents two versions of the error. Apps that use OpenID Connect or OAuth 2.0 show "The redirect URI specified in the request does not match the redirect URIs configured for the application", followed by the app ID. Apps that use SAML single sign-on show "The reply URL specified in the request does not match the reply URLs configured for the application". Both messages include the URI that was sent, which is the value you need for the fix.

Common causes

  • The redirect URI used in the application code or configuration was never added to the app registration in Microsoft Entra ID.
  • The URI differs slightly from the registered one, so it does not match.
  • For a SAML app, the AssertionConsumerServiceURL value in the SAML request does not match the Reply URL value or pattern configured in Microsoft Entra ID.
  • The app sends the wrong redirect URI, for example after a move to a new host name, so the code or configuration needs to change rather than the registration.

How to fix it

1. Copy the URI and app ID from the error

The error message shows the redirect URI or reply URL that the app sent and the application ID (a GUID). Copy both exactly. If you are a user, send them with the time of the error to whoever manages the application; you cannot fix this from your own account.

2. Add the redirect URI to an OAuth or OpenID Connect app registration

Sign in to the Azure portal with an account that has permission to update the app registration. Go to Microsoft Entra ID, select App registrations, and find the registration by the application ID from the error. Microsoft also gives a direct link pattern for the Authentication page:

https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/Authentication/appId/<AppGUID>

Select Authentication, and in the Platform configurations section select Add URI and add the redirect URI from the error message. Save the changes.

3. Wait a few minutes and sign in again

Microsoft says to wait three to five minutes for the change to take effect, then send the sign-in request again. If you do not see the Microsoft Entra sign-in page, clear the browser's password cache or use an InPrivate window.

4. Fix the Reply URL of a SAML single sign-on app

For a SAML app, open the enterprise application's single sign-on settings and verify or update the value in the Reply URL box so that it matches the AssertionConsumerServiceURL sent in the SAML request, which is the URL shown in the error. Microsoft notes that these values depend on the application, so get them from the application vendor.

5. Correct the app if it sends the wrong URI

If the URI in the error is not the one the app should use, do not register it. Microsoft's advice is to update the application code or configuration so it sends the intended redirect URI. As a general step, check the app's settings for an old host name or a missing path after a migration.

If nothing works

Confirm that you edited the registration whose application ID appears in the error, not a similarly named one, and that the URI was saved under the right platform. For the full code list and the error lookup page, see the Microsoft Entra error code reference. If the app belongs to a vendor, give them the exact URI from the error so they can correct their configuration.

What we checked

Three Microsoft Learn pages were read on 2026-11-21. The Microsoft Entra error code reference defines AADSTS50011 as InvalidReplyTo and says the missing reply address must be added to the application. The OpenID Connect troubleshooting article explains how Microsoft Entra ID compares the redirect URI and gives the App registrations steps and the three to five minute wait. The SAML troubleshooting article explains the AssertionConsumerServiceURL and Reply URL mismatch. The error was not reproduced for this page.

Last checked: 2026-11-21.

Official sources

Questions people ask

What does AADSTS50011 mean?

Microsoft lists it as InvalidReplyTo: the redirect URI (reply URL) the app sent is missing, misconfigured, or does not match any reply address configured for the app registration in Microsoft Entra ID.

Can a normal user fix AADSTS50011?

No. The fix is a change to the app registration or to the app's own configuration, so it needs someone who can manage the application in Microsoft Entra ID or the app vendor. A user can only report the error with the URI it shows.

How long after adding the redirect URI does the fix take effect?

Microsoft's troubleshooting article says to save the change and wait three to five minutes before sending the sign-in request again.

Is a redirect URI the same as a reply URL?

Yes. Microsoft notes that the reply URL is also known as the redirect URI. OAuth 2.0 and OpenID Connect apps call it a redirect URI; SAML apps configure it as the Reply URL.

Not your code?

Search the error code library, or report a code we don't cover. Spotted something out of date on this page? Report a correction.