简体   繁体   English

在Azure环境中找不到IdentityServer4 Microsoft提供程序回调路径

[英]IdentityServer4 Microsoft provider callbackpath not found in Azure environment

here is my problem (that only happens when publishing my Identity server in Azure) 这是我的问题(仅当在Azure中发布我的身份服务器时才会发生)

I configured Identity to support login with Google and Microsoft. 我配置了身份以支持使用Google和Microsoft登录。 Google works fine but if I choose Microsoft, its going to Microsoft Login without issues and after the login, when Microsoft is trying to redirect to our callback is giving not found. Google可以正常运行,但是如果我选择Microsoft,则可以正常登录到Microsoft,并且在尝试重新定向到我们的回调时找不到登录。 https://server/signin-microsoft?code=...&session_state= ... . https:// server / signin-microsoft?code = ...&session_state = ...。

Using same stuff but with Identity Server hosted in a localhost url is working fine. 使用相同的东西但在本地主机URL中托管Identity Server可以正常工作。 Google is configured the same way and is working without issues. Google的配置方式相同,并且可以正常使用。

Any idea what can I test or how I can troubleshoot this? 您知道我可以测试什么或如何解决此问题吗?

Thanks! 谢谢! Andres 安德烈斯

I finally find the issue and the problem was that the url was too long when Microsoft redirect to the IdentityServer. 我终于找到问题了,问题是当Microsoft重定向到IdentityServer时,URL太长了。 Just had to extend accepted query string to be a bit longer. 只需扩展接受的查询字符串就可以更长一些。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM