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

Patel, Rushen 21 Reputation points
2021-01-22T22:25:50.267+00:00

Hi,

I'm following the example in https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-v2-python-webapp

However I am getting the following error. I have configured the reply url to be http://localhost:5000/getAToken but when I login I get the following error:

Request Id: 6c0ec911-f9c9-4592-a974-dd6c936e0500
Correlation Id: f966bed2-8ebb-4d3b-ab80-3464ead17c84
Timestamp: 2021-01-22T22:21:58Z
Message: AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: 'b921bbd5-47a0-4ba6-95bf-c3c7a797114e'.

I'm unsure how to find the actual reply URL of the request. Also, is it possible to view the logs for the correlation_id via the powershell on Azure portal (or can they be seen in Monitor)?

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

Accepted answer
  1. Marilee Turscak-MSFT 36,411 Reputation points Microsoft Employee
    2021-01-22T23:47:59.66+00:00

    Hi @Patel, Rushen ,

    Have you already made sure that the reply URL you have set up under App Registrations in the Azure portal matches the reply URL you have set up in the code? It should be in the Apps.json and might be referenced in other places too.

    If you're testing locally it should be the local reply URL but if you've published the app you can use the published app URL where you want the user to be redirected. Just make sure that the references match in both the portal and the code.

    Also make sure that the Tenant ID and application ID are set correctly.

    0 comments No comments

0 additional answers

Sort by: Most helpful