From 1304815796e6dd8c11992d1dd3dff04039c43978 Mon Sep 17 00:00:00 2001 From: pvannierop Date: Wed, 4 Sep 2024 17:18:17 +0200 Subject: [PATCH] Fix passing url to HttpClient --- .../java/org/radarbase/auth/jwks/JwksTokenVerifierLoader.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/radar-auth/src/main/java/org/radarbase/auth/jwks/JwksTokenVerifierLoader.kt b/radar-auth/src/main/java/org/radarbase/auth/jwks/JwksTokenVerifierLoader.kt index c34f40e8d..aae8d7551 100644 --- a/radar-auth/src/main/java/org/radarbase/auth/jwks/JwksTokenVerifierLoader.kt +++ b/radar-auth/src/main/java/org/radarbase/auth/jwks/JwksTokenVerifierLoader.kt @@ -52,7 +52,7 @@ class JwksTokenVerifierLoader( private suspend fun fetchPublicKeyInfo(): JsonWebKeySet = withContext(Dispatchers.IO) { logger.info("Getting the JWT public key at {}", url) - val response = httpClient.request() + val response = httpClient.request(url) if (!response.status.isSuccess()) { throw TokenValidationException("Cannot fetch token keys (${response.status}) - ${response.bodyAsText()}") @@ -91,7 +91,6 @@ class JwksTokenVerifierLoader( }) } defaultRequest { - url(this@JwksTokenVerifierLoader.url) accept(ContentType.Application.Json) } }