简体   繁体   中英

How do I resolve a “No reply address provided” error when using MSAL.js?

I've copied the example app at this repository to try to implement single sign-on: https://github.com/Azure-Samples/ms-identity-javascript-v2 .

Into the msalConfig's auth object within the authConfig.js file I substituted my application's clientId and authority values, and used a redirectUrl value of "http://localhost:5500" since I need to test this locally first.

I'm getting the appropriate SSO popup that processes and then halts with the following error:

AADSTS900971: No reply address provided.

Is there a server-side setting that has to be in place for this to work? Can this be tested from localhost (or 127.0.0.1) on my machine?

Summary comments are posted as answers.

Like I said in the comments, you need to ensure that the redirectUrl configured in the authConfig.js file is consistent with the redirectUrl configured in Azure AD .

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM