From 6a39342cc625c407c2fe9a07d6a76d0ba12a4599 Mon Sep 17 00:00:00 2001 From: nikiforovall Date: Sun, 5 May 2024 23:21:10 +0300 Subject: [PATCH] docs: fix docs --- docs/configuration/configuration-authentication.md | 2 -- .../KeycloakInstallationOptionsTests.cs | 12 ++++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/configuration/configuration-authentication.md b/docs/configuration/configuration-authentication.md index 8faf63b9..3eeba008 100644 --- a/docs/configuration/configuration-authentication.md +++ b/docs/configuration/configuration-authentication.md @@ -13,7 +13,6 @@ Here is what library does for you: * Adds and configures `AddJwtBearer` based on provided configuration. * Registers `IOptions` and `IOptions`. -* Registers `KeycloakRolesClaimsTransformation` so special Keycloak role claims are added to `ClaimsPrincipal`. See [Keycloak Claims Transformation](#keycloak-claims-transformation) ### ServiceCollection Extensions @@ -119,7 +118,6 @@ Here is what library does for you: * Adds and configures `OpenIdConnect` based on provided configuration. * Registers `IOptions`, `IOptions`, and `IOptions`. -* Registers `KeycloakRolesClaimsTransformation` so special Keycloak role claims are added to `ClaimsPrincipal`. See [Keycloak Claims Transformation](#keycloak-claims-transformation) ### ServiceCollection Extensions 🚧 diff --git a/tests/Keycloak.AuthServices.Common.Tests/KeycloakInstallationOptionsTests.cs b/tests/Keycloak.AuthServices.Common.Tests/KeycloakInstallationOptionsTests.cs index ed40fcec..ab674c39 100644 --- a/tests/Keycloak.AuthServices.Common.Tests/KeycloakInstallationOptionsTests.cs +++ b/tests/Keycloak.AuthServices.Common.Tests/KeycloakInstallationOptionsTests.cs @@ -27,6 +27,18 @@ public void TestKebabCaseNotation() authenticationOptions.Should().BeEquivalentTo(Expected); } + [Fact] + public void TestKebabCaseNotationWithExtensionMethod() + { + var configuration = new ConfigurationBuilder().AddJsonFile("appsettings.json").Build(); + + var authenticationOptions = configuration.GetKeycloakOptions( + "Keycloak1" + ); + + authenticationOptions.Should().BeEquivalentTo(Expected); + } + [Fact] public void TestPascalCaseNotation() {