Skip to content

Commit

Permalink
Bytt ut tokenProvider koin access med enum verdi
Browse files Browse the repository at this point in the history
  • Loading branch information
b162214 committed Sep 12, 2024
1 parent 19843ff commit 9c3b0d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/kotlin/no/nav/syfo/koin/ExternalSystemsModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ fun Module.externalSystemClients(config: ApplicationConfig) {
)
} bind AccessTokenProvider::class
single {
val tokenProvider: AccessTokenProvider = get(qualifier = named("PDL"))
PdlClient(config.getString("pdl_url"), Behandlingsgrunnlag.INNTEKTSMELDING, tokenProvider::getToken)
PdlClient(config.getString("pdl_url"), Behandlingsgrunnlag.INNTEKTSMELDING,get<AccessTokenProvider>(qualifier = named(AccessScope.PDL))::getToken)
} bind PdlClient::class
}

Expand Down

0 comments on commit 9c3b0d7

Please sign in to comment.