AADSTS50011: Redirect URI mismatch
Microsoft Entra ID couldn't match the requested redirect URI to one registered for the app. This URI tells Entra where to send you after you sign in.
What to check
- Confirm that you're looking at the app registration for the client ID in the request and that you're in the right tenant.
- Compare the requested
redirect_uriwith the URI under App registrations > Authentication. Check the scheme, host, path, path casing, and trailing slash. - Correct the application's callback configuration or register the intended URI under the appropriate platform. Don't register an untrusted URI just to make the error go away.
Official reference
Microsoft Learn: Resolve AADSTS50011
Microsoft error lookup
Message summary: The app sent a redirect URI that Microsoft Entra ID does not recognise for that registration.
Fields in the message template: {redirectTerm}, {replyAddress}, {identifier}, {akamsLink}, {detail}.
Microsoft remediation: The app developer should check that the request supplies the authentication parameters the flow expects and that each value is correct.