Skip to content

Commit

Permalink
Fix audience
Browse files Browse the repository at this point in the history
  • Loading branch information
holymaloney committed Jul 22, 2024
1 parent 36c013a commit c17188a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ open class ProxyToOnPremTokenProvider(
) {
val isProd = EnvironmentUtils.isProduction().orElse(false)
private val scope = "api://${if (isProd) "prod" else "dev"}-fss.pto.veilarbaktivitet/.default"
private val audience = "${if (isProd) "prod" else "dev"}:pto:veilarbaktivitet"
private val audience = "${if (isProd) "prod" else "dev"}-fss:pto:veilarbaktivitet"
open fun getProxyToken(): String =
when {
authService.erInternBruker() -> azureAdOnBehalfOfTokenClient.exchangeOnBehalfOfToken(scope, authService.getInnloggetBrukerToken())
Expand Down

0 comments on commit c17188a

Please sign in to comment.