gpt4 book ai didi

javascript - AADSTS50011 : The reply URL specified in the request does not match the reply URLs configured for the application:

转载 作者:行者123 更新时间:2023-12-02 21:12:23 26 4
gpt4 key购买 nike

我正在使用 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.redirectUrimsal 将使用当前页面的 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com