Skip to content

Commit

Permalink
Pakkeoppdateringer og tilpasning av kode etter oppdatering av tokensu…
Browse files Browse the repository at this point in the history
…pport pakker
  • Loading branch information
nils-arne committed Nov 7, 2024
1 parent 44e88af commit ca954bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions arkiverer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,13 @@
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-reflect</artifactId>
</dependency>
<!--
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-kotlin</artifactId>
<version>${jackson-module-kotlin.version}</version>
</dependency>
-->
<dependency>
<groupId>com.expediagroup</groupId>
<artifactId>graphql-kotlin-spring-client</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class RestClientConfig {
body: ByteArray,
execution: ClientHttpRequestExecution
): ClientHttpResponse {
val token = tokenService.getToken()?.accessToken
val token = tokenService.getToken()?.access_token
val callId = MDC.get(Constants.HEADER_CALL_ID)

logger.info("Kaller service med callId: $callId")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class SafMaskinClientConfig(
it.header(NAV_CONSUMER_ID, applicationName)
it.header(
HttpHeaders.AUTHORIZATION,
"$BEARER${oAuth2AccessTokenService.getAccessToken(getClientProperties(oauth2Config))?.accessToken}",
"$BEARER${oAuth2AccessTokenService.getAccessToken(getClientProperties(oauth2Config)).access_token}",
)
}

Expand Down

0 comments on commit ca954bd

Please sign in to comment.