SOLVED

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

%3CLINGO-SUB%20id%3D%22lingo-sub-2548680%22%20slang%3D%22en-US%22%3Espfx%20webpart%20-%20AADSTS50011%20-%20The%20reply%20URL%20specified%20in%20the%20request%20does%20not%20match%20the%20reply%20URLs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2548680%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22rediecturi.png%22%20style%3D%22width%3A%20350px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F295878i6F49E7062A6F3105%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22rediecturi.png%22%20alt%3D%22rediecturi.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2250011error.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F295879i6B047C0600588D5F%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2250011error.png%22%20alt%3D%2250011error.png%22%20%2F%3E%3C%2FSPAN%3EHello%2C%3C%2FP%3E%3CP%3EI%20am%20writing%20a%20react%20web%20part%20that%20I%20am%20trying%20to%20test%20in%20the%20spfx%20workbench.%20It%20attempts%20to%20signon%20with%20the%20following%20url%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Flogin.microsoftonline.com%2Fcommon%2Foauth2%2Fv2.0%2Fauthorize%3Fresponse_type%3Did_token%26amp%3Bscope%3Dhttps%253A%252F%252Fanalysis.windows.net%252Fpowerbi%252Fapi%252FReport.Read.All%2520openid%2520profile%26amp%3Bclient_id%3D00d57ce0-04a7-4e18-a252-7ae583f92411%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Flogin.microsoftonline.com%2Fcommon%2Foauth2%2Fv2.0%2Fauthorize%3Fresponse_type%3Did_token%26amp%3Bscope%3Dhttps%253A%252F%252Fanalysis.windows.net%252Fpowerbi%252Fapi%252FReport.Read.All%2520openid%2520profile%26amp%3Bclient_id%3D00d57ce0-04a7-4e18-a252-7ae583f92411%3C%2FA%3E%3CSTRONG%3E%26amp%3Bredirect_uri%3Dhttps%253A%252F%252Flocalhost%253A4321%252Ftemp%252Fworkbench.html%3C%2FSTRONG%3E%26amp%3Bstate%3D3f22ab30-d4a3-4828-bc24-cdec8f331ea6%26amp%3Bnonce%3Df9bbfdf8-e69e-4c34-b5f1-1b85d3384356%26amp%3Bclient_info%3D1%26amp%3Bx-client-SKU%3DMSAL.JS%26amp%3Bx-client-Ver%3D1.1.3%26amp%3Bclient-request-id%3Dc252be18-d650-4c6d-aca5-87b34334dac9%26amp%3Bresponse_mode%3Dfragment%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20registered%20the%20app%20in%20Azure%20Portal%3B%20App%20Registrations%3B%20Authentication%20TAB%20and%20set%20the%20redirect%20uri%20to%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Flocalhost%3A4321%2Ftemp%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Flocalhost%3A4321%2Ftemp%3C%2FA%3E%3C%2FP%3E%3CP%3Eand%20saved.%3C%2FP%3E%3CP%3EWhen%20I%20start%20up%20the%20workbench%20and%20add%20the%20web%20part%20I%20get%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EAADSTS50011%3A%20The%20reply%20URL%20specified%20in%20the%20request%20does%20not%20match%20the%20reply%20URLs%20configured%20for%20the%20application%3A%20'00d57ce0-04a7-4e18-a252-7ae583f92411'.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EI%20do%20not%20have%20the%20issue%20if%20I%20use%20the%20same%20code%20outside%20of%20spfx.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EPlease%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2548680%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPIs%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2571364%22%20slang%3D%22en-US%22%3ERe%3A%20spfx%20webpart%20-%20AADSTS50011%20-%20The%20reply%20URL%20specified%20in%20the%20request%20does%20not%20match%20the%20reply%20URL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2571364%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F621279%22%20target%3D%22_blank%22%3E%40m_balcarek%3C%2FA%3E%26nbsp%3BI%20think%20there%20was%20just%20a%20delay%20because%20the%20issue%20disappeared%20after%20some%20time.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional 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 (Occasional Contributor)
Solution

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