Skip to content

Commit

Permalink
ktlint fix 2
Browse files Browse the repository at this point in the history
Co-authored-by: Mikael Bjerga <[email protected]>
Co-authored-by: Morten Byhring <[email protected]>
  • Loading branch information
3 people committed Jan 31, 2024
1 parent e471be9 commit e27f83d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/main/kotlin/no/nav/syfo/koin/ExternalSystemsModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,44 +38,42 @@ fun Module.externalSystemClients(config: ApplicationConfig) {
OAuth2TokenProvider(accessTokenService, azureAdConfig)
} bind AccessTokenProvider::class

single (named("PROXY")){
single(named("PROXY")) {
oauth2TokenProvider(
config,
config.getString("client.registration.clients[0].proxyscope")
)
} bind AccessTokenProvider::class

single (named("OPPGAVE")){
single(named("OPPGAVE")) {
oauth2TokenProvider(
config,
config.getString("client.registration.clients[0].oppgavescope")
)
} bind AccessTokenProvider::class

single (named("DOKARKIV")){
single(named("DOKARKIV")) {
oauth2TokenProvider(
config,
config.getString("client.registration.clients[0].dokarkivscope")
)
} bind AccessTokenProvider::class

single (named("SAF")){
single(named("SAF")) {
oauth2TokenProvider(
config,
config.getString("client.registration.clients[0].safscope")
)
} bind AccessTokenProvider::class

single (named("PDL")){
single(named("PDL")) {
oauth2TokenProvider(
config,
config.getString("client.registration.clients[0].pdlscope")
)
} bind AccessTokenProvider::class

}


private fun Scope.oauth2TokenProvider(config: ApplicationConfig, scope: String): OAuth2TokenProvider =
OAuth2TokenProvider(
oauth2Service = accessTokenService(this),
Expand Down

0 comments on commit e27f83d

Please sign in to comment.