azure-active-directory - 使用组登录 Azure AD 时出现错误 AADSTS50011
问题描述
我有一个使用 ADD 登录的天蓝色网站,它在本地运行良好。我有 Authentication Web URIs 设置
https://hcmerp-admin-dev-slot.azurewebsites.net/
https://localhost:5001/signin-oidc
https://hcmerp-admin-dev-slot.azurewebsites.net/signin-oidc
我尝试登录时收到此错误
AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the
application: 'e6ac92bc-9a0d-4dd7-ba6f-41428cf0b04f'.
错误页面上的 URL 是
https://login.microsoftonline.com/27b36724-47e7-4a5d-a318-e26c4968d3c2/oauth2/authorize?
client_id=e6ac92bc-9a0d-4dd7-ba6f-41428cf0b04f&redirect_uri=http%3A%2F%2Fhcmerp-admin-dev-
slot.azurewebsites.net%2Fsignin-oidc + more
解决方案
该 URL 表示它正在使用以下重定向 URI 参数:http%3A%2F%2Fhcmerp-admin-dev- slot.azurewebsites.net%2Fsignin-oidc
. 请注意,开头是“http”,而不是“https”。
回复 URL 检查方案也是如此。由于某种原因,您的应用程序正在重定向到 HTTP,而不是使用 HTTPS 作为重定向 URI 参数。
推荐阅读
- javascript - 将 LI 添加到 UL 顶部(EJS、MONGO、Node[Express])
- sql - 如何在 MS SQL 中将分组记录合并为一行
- c++ - 将 .txt 文件中的数据读入结构
- vue.js - 插件的 globalUIComponent 在构建期间执行 - 如何避免它?
- go - 通过队列发送哨兵追踪
- express - 错误:找不到模块 './models/book' 需要堆栈:
- matlab - 从顶点递归采样三角形?
- php - 为 2 个模型颁发 sanctum 令牌,以验证 API 请求(不是默认用户模型)
- flutter - 即使是无效用户也能登录成功
- javascript - 如何为 Ruby On Rails 编写 JavaScript?