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

标签 reactjs azure-active-directory azure-ad-msal react-functional-component

我已经为 React 应用程序配置了 Active Directory 登录。我收到这个错误。我也在 azure 中注册了我的应用程序。

authconfig.js 文件中编写的代码:

cpde ]

最佳答案

我可以看到您已经从 authconfig.js 使用“https://localhost:4200”配置了 RedirectURI,所以想知道您是否在 Azure AD 中为注册的应用程序配置了与重定向 URI 相同的 URL?该值必须完全匹配,假设您的代码配置了“http://localhost:4200”,但在 Azure AD 中您的replyurl 为“http://localhost:4200”(不带“S”),则预期会出现上述错误。

enter image description here

更多详情请引用:https://learn.microsoft.com/en-us/troubleshoot/azure/active-directory/error-code-aadsts50011-reply-url-mismatch

关于reactjs - AADSTS50011 :The reply URL specified in the request does not match the reply URLs configured for the application,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68909193/

相关文章:

azure - 如何从 VSCode Azure Functions 扩展登录我的 Azure 帐户?

在后端应用程序注册上启用用户/分配时,Azure 用户模拟不起作用

python - 无法将 MSGraph 与 python MSAL 一起使用

javascript - 为什么这个 React 状态数组不填充对象数据?

javascript - JSSProvider 不使用 classNamePrefix 生成类前缀

reactjs - React - 将组件作为参数传递给另一个组件

authentication - 使用 Azure AD 身份验证记住密码

c# - 如何仅使用 Microsoft 个人帐户在 Microsoft Graph 中进行身份验证?

angular - 是否可以在 Angular 8 中开发自定义登录页面以通过 Azure Ad API 进行身份验证

javascript - React - 使用 Hooks 根据 History.location.path 更改 onClick 行为