Skip to content

Commit f38ec8d

Browse files
Adds NetStandard support for MTLS (#5173)
fix Co-authored-by: Gladwin Johnson <[email protected]>
1 parent bdb67a0 commit f38ec8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/platform_and_feature_flags.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<PropertyGroup Condition="'$(TargetFramework)' == '$(TargetFrameworkNet)' or '$(TargetFramework)' == '$(TargetFrameworkNetDesktop462)' or '$(TargetFramework)' == '$(TargetFrameworkNetDesktop472)' or '$(TargetFramework)' == '$(TargetFrameworkNetStandard)'">
66
<DefineConstants>$(DefineConstants);SUPPORTS_OTEL;</DefineConstants>
77
</PropertyGroup>
8-
<PropertyGroup Condition="'$(TargetFramework)' == '$(TargetFrameworkNet)' or '$(TargetFramework)' == '$(TargetFrameworkNetDesktop472)'">
8+
<PropertyGroup Condition="'$(TargetFramework)' == '$(TargetFrameworkNet)' or '$(TargetFramework)' == '$(TargetFrameworkNetDesktop472)' or '$(TargetFramework)' == '$(TargetFrameworkNetStandard)'">
99
<DefineConstants>$(DefineConstants);SUPPORTS_MTLS;</DefineConstants>
1010
</PropertyGroup>
1111
<PropertyGroup Condition="'$(TargetFramework)' == '$(TargetFrameworkNetAndroid)'">

src/client/Microsoft.Identity.Client/PlatformsCommon/Shared/SimpleHttpClientFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private static HttpClient CreateMtlsHttpClient(X509Certificate2 bindingCertifica
4747
}
4848

4949
//Create an HttpClientHandler and configure it to use the client certificate
50-
HttpClientHandler handler = new HttpClientHandler();
50+
HttpClientHandler handler = new();
5151

5252
handler.ClientCertificates.Add(bindingCertificate);
5353
var httpClient = new HttpClient(handler);

0 commit comments

Comments
 (0)