Skip to content

Commit

Permalink
Merge pull request #949 from RADAR-base/bugfix/http-client-url
Browse files Browse the repository at this point in the history
[bugfix] Pass url to HttpClient
pvannierop authored Sep 5, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 423fcec + 1304815 commit aa7c320
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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)
}
}

0 comments on commit aa7c320

Please sign in to comment.