From cf5db4c79bfb549b23414d99c3e93aeec2e5305c Mon Sep 17 00:00:00 2001 From: Norbert Truchsess Date: Mon, 7 Oct 2024 23:47:50 +0200 Subject: [PATCH] cleanup --- .../FlurlUntrustedCertExceptionHandler.cs | 1 - .../Common/Extensions/FlurlRequestExtensions.cs | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/keycloak/Keycloak.ErrorHandling/FlurlUntrustedCertExceptionHandler.cs b/src/keycloak/Keycloak.ErrorHandling/FlurlUntrustedCertExceptionHandler.cs index 85208b97b6..fc3e865f9d 100644 --- a/src/keycloak/Keycloak.ErrorHandling/FlurlUntrustedCertExceptionHandler.cs +++ b/src/keycloak/Keycloak.ErrorHandling/FlurlUntrustedCertExceptionHandler.cs @@ -1,5 +1,4 @@ /******************************************************************************** - * Copyright (c) 2022 BMW Group AG * Copyright (c) 2022 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional diff --git a/src/keycloak/Keycloak.Library/Common/Extensions/FlurlRequestExtensions.cs b/src/keycloak/Keycloak.Library/Common/Extensions/FlurlRequestExtensions.cs index 266dbb8535..b72f0fc94b 100644 --- a/src/keycloak/Keycloak.Library/Common/Extensions/FlurlRequestExtensions.cs +++ b/src/keycloak/Keycloak.Library/Common/Extensions/FlurlRequestExtensions.cs @@ -39,10 +39,10 @@ private static async Task GetAccessTokenAsync(string url, string realm, .WithHeader("Accept", "application/json") .PostUrlEncodedAsync(new List> { - new KeyValuePair("grant_type", "password"), - new KeyValuePair("username", userName), - new KeyValuePair("password", password), - new KeyValuePair("client_id", "admin-cli") + new("grant_type", "password"), + new("username", userName), + new("password", password), + new("client_id", "admin-cli") }, cancellationToken: cancellationToken) .ReceiveJson().ConfigureAwait(ConfigureAwaitOptions.None); @@ -112,6 +112,6 @@ public static IFlurlRequest WithForwardedHttpHeaders(this IFlurlRequest request, } public record AccessTokenResponse( - [propert: JsonPropertyName("access_token")] string AccessToken + [property: JsonPropertyName("access_token")] string AccessToken ); }