Forum Discussion

m_balcarek's avatar
m_balcarek
Copper Contributor
Jul 14, 2021

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

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%2F%2Fanalysis.windows.net%2Fpowerbi%2Fapi%2FReport.Read.All%20openid%20profile&client_id=00d57ce0-04a7-4e18-a252-7ae583f92411&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.

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.

Please help.

Resources