Skip to content

Commit

Permalink
Debugger.
Browse files Browse the repository at this point in the history
  • Loading branch information
geiralund committed Oct 3, 2023
1 parent 3fd094f commit 14f9c10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mediator/src/main/kotlin/no/nav/dagpenger/mottak/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ internal object Config {

internal fun String.addHttprotocoll(): String = "https://$this"

val Configuration.dpProxyTokenProvider: () -> String by lazy {
val Configuration.dpProxyTokenProvider by lazy {
{
cachedTokenProvider.clientCredentials(properties[Key("DP_PROXY_SCOPE", stringType)]).accessToken
azureAdTokenSupplier(properties[Key("DP_PROXY_SCOPE", stringType)])
}
}

Expand All @@ -95,7 +95,7 @@ internal object Config {

private fun azureAdTokenSupplier(scope: String): () -> String =
{
runBlocking { cachedTokenProvider.clientCredentials(scope).accessToken }
cachedTokenProvider.clientCredentials(scope).accessToken
}

val kafkaProducerProperties: Properties by lazy {
Expand Down

0 comments on commit 14f9c10

Please sign in to comment.