首页 > 解决方案 > 使用组登录 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

标签: azure-active-directory

解决方案


该 URL 表示它正在使用以下重定向 URI 参数:http%3A%2F%2Fhcmerp-admin-dev- slot.azurewebsites.net%2Fsignin-oidc. 请注意,开头是“http”,而不是“https”。

回复 URL 检查方案也是如此。由于某种原因,您的应用程序正在重定向到 HTTP,而不是使用 HTTPS 作为重定向 URI 参数。


推荐阅读