作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 msal
来验证用户身份。
我的userAgentApplication
看起来像这样:
var userAgentApplication = new UserAgentApplication({
auth: {
clientId: config.appId,
authority: config.authority,
validateAuthority: false,
},
cache: {
cacheLocation: "localStorage",
storeAuthStateInCookie: true,
},
});
这是我的config.js
modules.exports = {
appId: "<my-App-id>",
authority:
"https://login.microsoftonline.com/<my-Tenant-id>/",
scopes: ["user.read", "calendars.read"],
};
我一直遇到这个错误,但我不知道为什么会发生。
Request Id: 38b5b62e-0407-4520-8319-157b9c2e3e00
Correlation Id: 143c20c5-4cab-41be-aded-14daa783d022
Timestamp: 2020-04-06T07:21:35Z
Message: AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: 'xxxxxxxxxx'.
最佳答案
如果实例化 UserAgentApplication
时未设置 auth.redirectUri
,msal
将使用当前页面的 url 作为 为每个请求设置的 >redirectUri
以及用作 redirectUri
的页面都必须在 Azure 门户中注册。您需要将 auth.redirectUri 设置为在 Azure 门户中注册的 url,或者将应用程序中的所有页面注册为可能的重定向 uri(可能不太可取)。
关于javascript - AADSTS50011 : The reply URL specified in the request does not match the reply URLs configured for the application:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61054921/
我是一名优秀的程序员,十分优秀!