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 fe3bf09 commit ea9a72e
Show file tree
Hide file tree
Showing 3 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 @@ -3,7 +3,7 @@ buildscript {
kotlinVersion = '2.0.21'
springBootVersion = '3.3.5'
springKafkaVersion = '3.2.4'
tokenSupportVersion = '4.1.4'
tokenSupportVersion = '5.0.11'
archUnitVersion = '1.3.0'
jacksonModuleKotlinVersion = '2.18.1'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class OAuth2Configuration(
oAuth2AccessTokenService: OAuth2AccessTokenService): ClientHttpRequestInterceptor {
return ClientHttpRequestInterceptor { request: HttpRequest, body: ByteArray?, execution: ClientHttpRequestExecution ->
val response = oAuth2AccessTokenService.getAccessToken(clientProperties)
request.headers.setBearerAuth(response.accessToken!!)
request.headers.setBearerAuth(response.access_token!!)
execution.execute(request, body!!)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class PDLConfiguration(
override fun callBack(): PdlToken {
val clientProperties = Optional.ofNullable(clientConfigurationProperties.registration["pdl-credentials"]).orElseThrow { RuntimeException("could not find oauth2 client config for pdl-credentials") }
val response = oAuth2AccessTokenService.getAccessToken(clientProperties)
val token = response.accessToken!!
val token = response.access_token!!
return PdlTokenImp(token)
}

Expand Down

0 comments on commit ea9a72e

Please sign in to comment.