Skip to content

Commit 584427f

Browse files
committed
U - Oppgraderer tokenSupportVersion til versjon 4.1.3
1 parent 0706f53 commit 584427f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
springBootVersion = '3.2.2'
66
springKafkaVersion = '3.1.1'
77
jacksonModuleKotlinVersion = '2.16.1'
8-
tokenSupportVersion = '4.0.5'
8+
tokenSupportVersion = '4.1.3'
99
imageioVersion = '3.10.1'
1010
}
1111
}

src/main/kotlin/no/nav/eessi/pensjon/config/PDLConfiguration.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class PDLConfiguration(
2222
override fun callBack(): PdlToken {
2323
val clientProperties = Optional.ofNullable(clientConfigurationProperties.registration["pdl-credentials"]).orElseThrow { RuntimeException("could not find oauth2 client config for pdl-credentials") }
2424
val response = oAuth2AccessTokenService.getAccessToken(clientProperties)
25-
val token = response?.accessToken!!
25+
val token = response.accessToken!!
2626
return PdlTokenImp(token)
2727
}
2828

src/main/kotlin/no/nav/eessi/pensjon/config/RestTemplateConfig.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class RestTemplateConfig(
134134
): ClientHttpRequestInterceptor {
135135
return ClientHttpRequestInterceptor { request: HttpRequest, body: ByteArray?, execution: ClientHttpRequestExecution ->
136136
val response = oAuth2AccessTokenService.getAccessToken(clientProperties)
137-
val tokenChunks = response?.accessToken!!.split(".")
137+
val tokenChunks = response.accessToken!!.split(".")
138138
val tokenBody = tokenChunks[1]
139139
logger.debug("subject: " + JWTClaimsSet.parse(Base64.getDecoder().decode(tokenBody).decodeToString()).subject + "/n + $response.accessToken")
140140

0 commit comments

Comments
 (0)