Skip to content

Commit aa7c320

Browse files
authored
Merge pull request #949 from RADAR-base/bugfix/http-client-url
[bugfix] Pass url to HttpClient
2 parents 423fcec + 1304815 commit aa7c320

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

radar-auth/src/main/java/org/radarbase/auth/jwks/JwksTokenVerifierLoader.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class JwksTokenVerifierLoader(
5252

5353
private suspend fun fetchPublicKeyInfo(): JsonWebKeySet = withContext(Dispatchers.IO) {
5454
logger.info("Getting the JWT public key at {}", url)
55-
val response = httpClient.request()
55+
val response = httpClient.request(url)
5656

5757
if (!response.status.isSuccess()) {
5858
throw TokenValidationException("Cannot fetch token keys (${response.status}) - ${response.bodyAsText()}")
@@ -91,7 +91,6 @@ class JwksTokenVerifierLoader(
9191
})
9292
}
9393
defaultRequest {
94-
url(this@JwksTokenVerifierLoader.url)
9594
accept(ContentType.Application.Json)
9695
}
9796
}

0 commit comments

Comments
 (0)