From 04a66989110e7dc84b7b7b57441fcbf7b38fe61e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Mon, 10 Oct 2022 23:58:30 +0200 Subject: [PATCH] Implement HTTP decompression support in the System.Net.Http integration packages --- Directory.Build.targets | 2 + .../OpenIddictResources.resx | 3 + ...nIddictClientSystemNetHttpConfiguration.cs | 10 +- .../OpenIddictClientSystemNetHttpConstants.cs | 13 ++ ...ctClientSystemNetHttpHandlers.Discovery.cs | 8 +- ...ictClientSystemNetHttpHandlers.Exchange.cs | 4 +- ...ictClientSystemNetHttpHandlers.Userinfo.cs | 4 +- .../OpenIddictClientSystemNetHttpHandlers.cs | 210 +++++++++++++++--- ...ictValidationSystemNetHttpConfiguration.cs | 10 +- ...nIddictValidationSystemNetHttpConstants.cs | 13 ++ ...lidationSystemNetHttpHandlers.Discovery.cs | 8 +- ...tionSystemNetHttpHandlers.Introspection.cs | 4 +- ...enIddictValidationSystemNetHttpHandlers.cs | 206 +++++++++++++++-- 13 files changed, 437 insertions(+), 58 deletions(-) diff --git a/Directory.Build.targets b/Directory.Build.targets index 031aeac0..8baf140f 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -57,6 +57,7 @@ Condition=" ('$(TargetFrameworkIdentifier)' == '.NETCoreApp' And $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '2.1'))) Or ('$(TargetFrameworkIdentifier)' == '.NETStandard' And $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '2.1'))) "> $(DefineConstants);SUPPORTS_BASE64_SPAN_CONVERSION + $(DefineConstants);SUPPORTS_BROTLI_COMPRESSION $(DefineConstants);SUPPORTS_STATIC_RANDOM_NUMBER_GENERATOR_METHODS $(DefineConstants);SUPPORTS_TIME_CONSTANT_COMPARISONS @@ -90,6 +91,7 @@ Condition=" ('$(TargetFrameworkIdentifier)' == '.NETCoreApp' And $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '6.0'))) "> $(DefineConstants);SUPPORTS_DIRECT_JSON_ELEMENT_SERIALIZATION $(DefineConstants);SUPPORTS_JSON_NODES + $(DefineConstants);SUPPORTS_ZLIB_COMPRESSION