question

PatelRushen-9574 avatar image
0 Votes"
PatelRushen-9574 asked ·

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

Hi,

I'm following the example in https://docs.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)?

azure-active-directoryazure-ad-app-development
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MarileeTurscak avatar image
0 Votes"
MarileeTurscak answered ·

Hi @PatelRushen-9574,

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.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.