Help with redirectUriMismatchError

Marmet, Kevin 0 Reputation points
2024-06-20T15:26:22.3266667+00:00

I have external login for Microsoft setup in my .NET core application. I receiver the error below when I try to register using the external login.

I have the HTTPS (not HTTP) Redirect URI setup in Authentication.

Why is the error/request showing/using HTTP when I have the HTTPS redirection?

AADSTS50011: The redirect URI 'http://XXX/signin-microsoft' specified in the request does not match the redirect URIs configured for the application '152c8721-XXXX-4fd5-923f-3d0e36335998'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this.

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

1 answer

Sort by: Most helpful
  1. James Hamil 23,136 Reputation points Microsoft Employee
    2024-06-20T18:59:55.96+00:00

    Hi @Marmet, Kevin , this means that the redirect URI specified in the authentication request does not match the redirect URIs configured for your application in the Azure portal. This can happen if the redirect URI in the authentication request is different from the one you have configured in the Azure portal.

    To resolve this issue, you need to make sure that the redirect URI in the authentication request matches the one you have configured in the Azure portal.

    Please review this document for detailed steps on how to do this.

    Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James

    0 comments No comments