Skip to content

Commit

Permalink
F!!Oppgraderer til siste version av nav token support som inneholder …
Browse files Browse the repository at this point in the history
…fix for spring sårbarhet ref CWE-178
  • Loading branch information
dskarpas committed Nov 18, 2024
1 parent 46ea8b3 commit 266c756
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
springKafkaVersion = '3.2.4'
jacksonModuleKotlinVersion = '2.18.1'
cxfVersion = '3.3.4'
tokenSupportVersion = '4.1.4'
tokenSupportVersion = '5.0.11'
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ class RestTemplateConfig(
): ClientHttpRequestInterceptor {
return ClientHttpRequestInterceptor { request: HttpRequest, body: ByteArray?, execution: ClientHttpRequestExecution ->
val response = oAuth2AccessTokenService.getAccessToken(clientProperties)
request.headers.setBearerAuth(response.accessToken!!)
val tokenChunks = response.accessToken!!.split(".")
request.headers.setBearerAuth(response.access_token!!)
val tokenChunks = response.access_token!!.split(".")
val tokenBody = tokenChunks[1]
logger.debug("subject: " + JWTClaimsSet.parse(Base64.getDecoder().decode(tokenBody).decodeToString()).subject)
execution.execute(request, body!!)
Expand Down

0 comments on commit 266c756

Please sign in to comment.