简体   繁体   English

ASP.NET OpenIdConnectAuthenticationOptions - MVC 响应状态码不表示成功:400(错误请求)

[英]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!谢谢!

Image Here图片在这里

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.

相关问题 从 Azure 中托管的 Asp.net Core MVC Web App 获取“响应状态代码并不表示成功:502(坏网关)” - Getting "Response status code does not indicate success: 502 (Bad Gateway)" from Asp.net Core MVC Web App hosted in Azure Bot Framework C#Luis Getting>异常:响应状态代码未指示成功:400(错误请求) - Bot Framework C# Luis Getting > Exception: Response status code does not indicate success: 400 (Bad Request) 在webapi asp.net中,我遇到以下错误。,响应状态代码未指示成功404(未找到) - In webapi asp.net I am getting following error.,response status code does not indicate success 404 (not found) Cosmos DB:响应状态码不表示成功:BadRequest (400); 子状态:1001; 原因: (); - Cosmos DB: Response status code does not indicate success: BadRequest (400); Substatus: 1001; Reason: (); HttpClient System.Net.Http.HttpRequestException:响应状态码不表示成功:401(未授权) - HttpClient System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized) 响应状态码不表示成功:401 Tumblr - Response status code does not indicate success: 401 Tumblr WebApi-响应状态代码未指示成功:404(未找到) - WebApi - Response status code does not indicate success: 404 (Not Found) AD Microsoft登录400错误的请求标头太长ASP.net MVC - AD Microsoft Login 400 bad request headers too long ASP.net MVC 尝试在ASP.NET MVC中对控制器进行Ajax调用时出现400错误的请求 - 400 Bad Request when trying Ajax call to Controller in ASP.NET MVC "ASP.net MVC 客户端使用补丁 API 获取错误请求 400 返回" - ASP.net MVC clients consume patch API get Bad request 400 returns
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM