AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: '0eaef1b0-06fc-46af-b4db-beeab7b07069'.

Radha Rajendran 61 Reputation points
2021-03-19T19:59:49.82+00:00

Request Id: 4cd07840-1eb4-4f10-9d23-06f2e1602700
Correlation Id: 259fa420-3ab7-46cb-a3b2-7788e0ab3abf
Timestamp: 2021-03-19T19:53:37Z
Message: AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: '0eaef1b0-06fc-46af-b4db-beeab7b07069'.

I am working on POC followed below url to build spring boot and aZure ad applciaiton.
https://learn.microsoft.com/en-us/azure/developer/java/spring-framework/configure-spring-boot-starter-java-app-with-azure-active-directory

Any leads to resolve this issue is appreciated

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. Marilee Turscak-MSFT 37,206 Reputation points Microsoft Employee Moderator
    2021-03-19T20:48:54.68+00:00

    Hi @Radha Rajendran ,

    Based on your correlation ID, it looks like you have one listed as http://localhost:8080/login/oauth2/code/azure and the other listed as http://localhost:8080/login/oauth2/code/

    Because the one has "azure" at the end and the other does not, that is probably the reason for the error.

    As you probably know, the reply URL in your code needs to match exactly what you have in your app registration. There cannot be any mismatched spaces, slashes ("/"), or parameters. Also, if you're testing locally you would have the local application URL and if you're testing with a published app you would redirect the user to the published application. The app ID and tenant ID also need to match both in the code and the registration.

    Hope this helps!

    -

    If you find this answer helpful, don't forget to "mark as answer" and leave a five-star rating.


1 additional answer

Sort by: Most helpful
  1. Radha Rajendran 61 Reputation points
    2021-03-22T13:36:48.183+00:00

    Hi Thank you for the response. I just tried before your answer and it worked. However, how will i know which is the right reply URL. This is my first trial application for which i used/followed the steps provided in microsoft website.

    https://learn.microsoft.com/en-us/azure/developer/java/spring-framework/configure-spring-boot-starter-java-app-with-azure-active-directory

    So how will i know the right reply URL to give and if i need to make change on the redirect url, how do I override and what the redirect URL should do.

    Thanks,
    Radha


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.