[英]ASP.NET OpenIdConnectAuthenticationOptions - MVC Response status code does not indicate success: 400 (Bad Request)
I am currently working on an old ASP.NET MVC application and suddenly it appears there's something wrong with the login mechanism using the OpenIdConnectAuthenticationOptions
, it won't get through to Microsoft login.我目前正在开发一个旧的 ASP.NET MVC 应用程序,突然使用
OpenIdConnectAuthenticationOptions
的登录机制出现问题,它无法通过 Microsoft 登录。
I can't figure it out and hard to trace what's the issue on it because I have another application with the same implementation of OpenIdConnectAuthenticationOptions
but that works perfectly fine.我无法弄清楚并且很难追踪它的问题,因为我有另一个应用程序具有相同的
OpenIdConnectAuthenticationOptions
实现,但它工作得非常好。
Has anyone experienced the same issue?有没有人遇到过同样的问题?
Thanks!谢谢!
I found an answer!我找到了答案!
Solution: IDX10803: Unable to create to obtain configuration from: 'https://login.microsoftonline.com/{Tenant-ID}/.well-known/openid-configuration'解决方案: IDX10803:无法创建以从以下位置获取配置:'https://login.microsoftonline.com/{Tenant-ID}/.well-known/openid-configuration'
I was able to find this article and the solution from Brent.我能够从布伦特找到这篇文章和解决方案。 It is just the latest trend of rolling out of deprecation of SSL.
这只是推出弃用 SSL 的最新趋势。
Option 1 and Option 2 both work fine but the most efficient way is to change the target framework HttpRunTime in the web config from 4.5.2 to 4.7.1 or higher.选项 1 和选项 2 都可以正常工作,但最有效的方法是将 web 配置中的目标框架 HttpRunTime 从 4.5.2 更改为 4.7.1 或更高版本。
I hope this help anyone who experiences the same.我希望这可以帮助任何有同样经历的人。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.