SOLVED

spfx webpart - AADSTS50011 - The reply URL specified in the request does not match the reply URLs

Copper Contributor

Hello,

I am writing a react web part that I am trying to test in the spfx workbench. It attempts to signon with the following url

 

https://login.microsoftonline.com/common/oauth2/v2.0/authorize?response_type=id_token&scope=https%3A...&redirect_uri=https%3A%2F%2Flocalhost%3A4321%2Ftemp%2Fworkbench.html&state=3f22ab30-d4a3-4828-bc24-cdec8f331ea6&nonce=f9bbfdf8-e69e-4c34-b5f1-1b85d3384356&client_info=1&x-client-SKU=MSAL.JS&x-client-Ver=1.1.3&client-request-id=c252be18-d650-4c6d-aca5-87b34334dac9&response_mode=fragment

 

I have registered the app in Azure Portal; App Registrations; Authentication TAB and set the redirect uri to:

https://localhost:4321/temp

and saved.

rediecturi.png

When I start up the workbench and add the web part I get:

 

AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: '00d57ce0-04a7-4e18-a252-7ae583f92411'.

 

I do not have the issue if I use the same code outside of spfx.

I am using yeoman spfx generator v 1.10.0.

spfx generator.png

Please help.

50011error.png

1 Reply
best response confirmed by m_balcarek (Copper Contributor)
Solution

@m_balcarek I think there was just a delay because the issue disappeared after some time.

1 best response

Accepted Solutions
best response confirmed by m_balcarek (Copper Contributor)
Solution

@m_balcarek I think there was just a delay because the issue disappeared after some time.

View solution in original post