From ec32cfa6e5162c950804352cf42ab1fd95db8de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Thu, 14 Apr 2022 03:55:19 +0200 Subject: [PATCH] Add System.Text.Json.Nodes support and revamp the OpenIddictParameter primitive --- Directory.Build.targets | 6 + .../Startup.cs | 17 +- .../Worker.cs | 16 + .../OpenIddict.Abstractions.csproj | 2 +- .../OpenIddictResources.resx | 2 +- .../Primitives/OpenIddictConverter.cs | 14 +- .../Primitives/OpenIddictMessage.cs | 46 +- .../Primitives/OpenIddictParameter.cs | 961 ++++++++++----- .../Primitives/OpenIddictRequest.cs | 16 + .../Primitives/OpenIddictResponse.cs | 16 + .../OpenIddictClientAspNetCoreHandlers.cs | 7 + .../OpenIddictClientHandlers.Exchange.cs | 19 +- .../OpenIddictClientHandlers.Userinfo.cs | 104 +- .../OpenIddictClientHandlers.cs | 1 + ...ServerAspNetCoreHandlers.Authentication.cs | 34 +- ...nIddictServerAspNetCoreHandlers.Session.cs | 34 +- .../OpenIddictServerAspNetCoreHandlers.cs | 13 + ...IddictServerOwinHandlers.Authentication.cs | 34 +- .../OpenIddictServerOwinHandlers.Session.cs | 34 +- .../OpenIddictValidationAspNetCoreHandlers.cs | 7 + ...nIddictValidationHandlers.Introspection.cs | 128 +- .../Primitives/OpenIddictConverterTests.cs | 44 +- .../Primitives/OpenIddictMessageTests.cs | 22 + .../Primitives/OpenIddictParameterTests.cs | 1084 ++++++++++++++++- ...nIddictServerAspNetCoreIntegrationTests.cs | 34 +- 25 files changed, 2155 insertions(+), 540 deletions(-) diff --git a/Directory.Build.targets b/Directory.Build.targets index 8d162cfd..bf296bb2 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -84,6 +84,12 @@ $(DefineConstants);SUPPORTS_MULTIPLE_VALUES_IN_QUERYHELPERS + + $(DefineConstants);SUPPORTS_DIRECT_JSON_ELEMENT_SERIALIZATION + $(DefineConstants);SUPPORTS_JSON_NODES + +