简体   繁体   English

OAuth WPF 中的 TLS 1.2 身份验证 Window 应用程序 Z303CB0EF9EDB9082AZD61BBBE058

[英]OAuth Authentication with TLS 1.2 in WPF Window Application .NET Framework 4.0

I have a WPF window application on .NET Framework 4.0 using OAuth authentication.我在 .NET 框架 4.0 上有一个 WPF window 应用程序,使用 Z54699D9A7E6DF4EDBCA405328EZB2 身份验证。

I used Microsoft.Identity.Client library to implement OAuth authentication.我使用Microsoft.Identity.Client库来实现 OAuth 身份验证。

When we see logs in Azure monitor all users sign in with Legacy TLS (TLS 1.0,1.1,3 DES).当我们在 Azure 中看到日志时,监控所有用户使用旧 TLS(TLS 1.0、1.1、3 DES)登录。 We want to sign in with TLS 1.2.我们想使用 TLS 1.2 登录。

How can we achieve this?我们怎样才能做到这一点?

We have successfully enabled TLS 1.2 for MVC web application user sign in with TLS 1.2 which runs on .NET Framework 4.5.我们已成功为 MVC web 应用程序用户使用在 .NET Framework 4.5 上运行的 TLS 1.2 登录启用 TLS 1.2。

Anything .NET Framework 4.0 or below does not support TLS 1.2 and .NET 4 only supports up to TLS 1.0. .NET Framework 4.0 或更低版本不支持 TLS 1.2 和 .NET 4 仅支持 TLS 1.0。 In .NET Framework 4.0 the SecurityProtocolType doesnot have any entry for TLS1.2, So you must either update the runtime version or switch to TLS 1.0.在 .NET 框架 4.0 中,SecurityProtocolType 没有任何 TLS1.2 条目,因此您必须更新运行时版本或切换到 TLS 1.0。 We see that you have successfully enabled TLS 1.2 for MVC web application user sign in which runs on .NET Framework 4.5, because TLS 1.2 is supported by .NET4.5, however its not a default protocol.我们看到您已成功为在 .NET Framework 4.5 上运行的 MVC web 应用程序用户登录启用了 TLS 1.2,因为 .NET4.5 支持 TLS 1.2,但它不是默认协议。 To use it, you must opt-in.要使用它,您必须选择加入。

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

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