Azure AD登录组得到错误AADSTS50011



我有一个使用ADD登录的azure网站,它在本地工作良好。我有身份验证Web uri设置

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",而不是"http"

回复url检查方案。由于某些原因,你的应用程序重定向到HTTP,而不是使用HTTPS作为重定向URI参数。

https://seankilleen.com/2020/06/solved-net-core-azure-ad-in-docker-container-incorrectly-uses-an-non-https-redirect-uri/问题是。net核心代码在容器中运行。这就是解决办法。

最新更新