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

Muhammad Izzuan Ariffin 21 Reputation points
2021-04-23T04:12:11.253+00:00

Hi, I'm trying to currently test locally using Microsoft Graph Login to see if I am able to access my web app, but it seems that after inputting the same reply URL. it still returns the same error.

Attached is the screengrab
90601-image.png

Request Id: 43db9ea8-8fce-4bc4-9e8c-96f653334500
Correlation Id: 7c2d6c14-93a4-4570-aaca-d4450b275756
Timestamp: 2021-04-23T04:05:12Z
Message: AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: '10a44433-fddc-4655-8735-3ce5cfefcb8b'.

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

Accepted answer
  1. KalyanChanumolu-MSFT 8,316 Reputation points
    2021-04-26T06:48:22.763+00:00

    @Muhammad Izzuan Ariffin I would recommend creating a new thread for different issues so that more community members can provide their views.

    State could be any random string that you can generate, it will be returned in the token response so you can use it to check for cross-site request forgery attacks.
    You can include it in the request as shown below.

    https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize?  
    client_id=6731de76-14a6-49ae-97bc-6eba6914391e  
    &response_type=code  
    &redirect_uri=http%3A%2F%2Flocalhost%2Fmyapp%2F  
    &response_mode=query  
    &scope=https%3A%2F%2Fgraph.microsoft.com%2Fmail.read%20api%3A%2F%2F  
    &state=12345  
    &code_challenge=YTFjNjI1OWYzMzA3MTI4ZDY2Njg5M2RkNmVjNDE5YmEyZGRhOGYyM2IzNjdmZWFhMTQ1ODg3NDcxY2Nl  
    &code_challenge_method=S256  
    

    ----------

    If an answer or comment is helpful, please "Accept answer" or "Up-Vote" which might help other community members reading this thread.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. KalyanChanumolu-MSFT 8,316 Reputation points
    2021-04-23T05:15:55.017+00:00

    @Muhammad Izzuan Ariffin Welcome to Microsoft Q&A Forums.
    If you are running the application from your local machine, please make sure that the localhost URI with port number is added as a Redirect URI to the App Registration

    Local development debug URI
    90595-image.png

    App Registration
    90594-image.png

    It could take some time for the changes made in AD to take effect.
    Please let us know if you have further questions.

    ----------

    If an answer is helpful, please "Accept answer" or "Up-Vote" for the same which might be beneficial to other community members reading this thread.

    1 person found this answer helpful.