AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application

shi roy 21 Reputation points
2021-04-01T14:22:14.97+00:00

Hi,
We built our project and successfully ran it locally, however while trying to deploy it, we are continuously getting the error message like "AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: '7e5767e2-680a-4b9d-8e6e-17097ce6f204'." Could anyone please tell us how to check the actual redirect url? Thank you so much!

Request Id: e8166891-4e29-4fd7-ac9d-3d1f63555800
Correlation Id: 743513b8-380b-4d0c-97e6-ccf85936adcc
Timestamp: 2021-04-01T14:06:54Z
Message: AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: '7e5767e2-680a-4b9d-8e6e-17097ce6f204'.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

2 answers

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,871 Reputation points Moderator
    2021-04-01T16:01:13.117+00:00

    Hi @shi roy · Thank you for reaching out.

    Based on the request ID,

    • The reply url in the authentication request is: http://bexxxxxxxbe.azurewebsites.net/login/oauth2/code/azure
    • The reply url (Redirect URI) registered in the application with id "7e5767e2-680a-4b9d-8e6e-17097ce6f204" is with HTTPS and not HTTP.

    To resolve the issue, update the application code to use reply url with HTTPS rather than HTTP.

    -----------------------------------------------------------------------------------------------------------

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


  2. Siva-kumar-selvaraj 15,721 Reputation points
    2021-04-01T16:09:06.343+00:00

    Hello @shi roy ,

    Thanks for reaching out.

    I would request you to refer the steps mentioned in this post: https://learn.microsoft.com/en-us/answers/questions/270056/aadsts50011-the-reply-url-specified-in-the-request-17.html

    Those steps would help you resolve this issue.

    Regards,
    Siva Kumar Selvaraj

    ------------------

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

    0 comments No comments

Your answer

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