From d6c9c0b35c791b89f3bd92e62b6ef071c6452268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Fri, 29 Sep 2023 09:45:06 +0200 Subject: [PATCH] Add client assertions support to the server stack --- Directory.Packages.props | 42 +- .../Web.config | 6 +- .../Startup.cs | 2 + .../Web.config | 6 +- .../Startup.cs | 32 +- .../Worker.cs | 34 +- .../OpenIddictApplicationDescriptor.cs | 6 + .../Managers/IOpenIddictApplicationManager.cs | 12 + .../OpenIddictConstants.cs | 2 +- .../OpenIddictResources.resx | 18 +- .../Stores/IOpenIddictApplicationStore.cs | 21 + ...ClientDataProtectionHandlers.Protection.cs | 8 +- ...tClientWebIntegrationHandlers.Discovery.cs | 2 +- .../OpenIddictClientWebIntegrationHandlers.cs | 18 +- .../OpenIddictClientBuilder.cs | 12 +- .../OpenIddictClientEvents.Protection.cs | 4 +- .../OpenIddictClientEvents.cs | 52 +- .../OpenIddictClientExtensions.cs | 4 +- .../OpenIddictClientHandlerFilters.cs | 12 +- .../OpenIddictClientHandlers.Protection.cs | 34 +- .../OpenIddictClientHandlers.cs | 112 ++-- .../OpenIddictClientOptions.cs | 6 +- .../Managers/OpenIddictApplicationManager.cs | 70 ++- .../OpenIddictEntityFrameworkApplication.cs | 7 + ...enIddictEntityFrameworkApplicationStore.cs | 41 ++ ...penIddictEntityFrameworkCoreApplication.cs | 7 + ...dictEntityFrameworkCoreApplicationStore.cs | 41 ++ .../OpenIddictMongoDbApplication.cs | 6 + .../OpenIddictMongoDbApplicationStore.cs | 34 +- .../OpenIddictServerAspNetCoreConstants.cs | 2 + .../OpenIddictServerAspNetCoreHandler.cs | 15 + ...ServerDataProtectionHandlers.Protection.cs | 6 + .../OpenIddictServerOwinConstants.cs | 1 + .../OpenIddictServerOwinHandler.cs | 5 + .../OpenIddictServerEvents.Protection.cs | 7 +- .../OpenIddictServerEvents.cs | 51 ++ .../OpenIddictServerExtensions.cs | 2 + .../OpenIddictServerHandlerFilters.cs | 34 ++ .../OpenIddictServerHandlers.Device.cs | 82 ++- .../OpenIddictServerHandlers.Discovery.cs | 4 + .../OpenIddictServerHandlers.Exchange.cs | 92 +++- .../OpenIddictServerHandlers.Introspection.cs | 82 ++- .../OpenIddictServerHandlers.Protection.cs | 213 ++++++-- .../OpenIddictServerHandlers.Revocation.cs | 82 ++- .../OpenIddictServerHandlers.cs | 510 +++++++++++++++++- ...dationDataProtectionHandlers.Protection.cs | 6 + .../OpenIddictValidationEvents.Protection.cs | 5 + ...OpenIddictValidationHandlers.Protection.cs | 6 + ...OpenIddictServerIntegrationTests.Device.cs | 85 +++ ...enIddictServerIntegrationTests.Exchange.cs | 141 ++++- ...ictServerIntegrationTests.Introspection.cs | 127 ++++- ...IddictServerIntegrationTests.Protection.cs | 1 - ...IddictServerIntegrationTests.Revocation.cs | 90 +++- 53 files changed, 2037 insertions(+), 263 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index cc7f9776..fb33588b 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -36,9 +36,9 @@ - - - + + + @@ -94,9 +94,9 @@ - - - + + + @@ -152,9 +152,9 @@ - - - + + + @@ -234,9 +234,9 @@ - - - + + + @@ -279,9 +279,9 @@ - - - + + + @@ -343,9 +343,9 @@ - - - + + + @@ -395,9 +395,9 @@ - - - + + + diff --git a/sandbox/OpenIddict.Sandbox.AspNet.Client/Web.config b/sandbox/OpenIddict.Sandbox.AspNet.Client/Web.config index 2caf5a0f..921c0042 100644 --- a/sandbox/OpenIddict.Sandbox.AspNet.Client/Web.config +++ b/sandbox/OpenIddict.Sandbox.AspNet.Client/Web.config @@ -1,4 +1,4 @@ - +