From 041292bb6a5acb2a891f09c0200010966c390d14 Mon Sep 17 00:00:00 2001 From: malazalkoj Date: Thu, 29 Aug 2024 09:07:06 +0200 Subject: [PATCH] Remove :api// from AzureAdTokenClient --- src/main/kotlin/no/nav/syfo/auth/azure/AzureAdTokenClient.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/no/nav/syfo/auth/azure/AzureAdTokenClient.kt b/src/main/kotlin/no/nav/syfo/auth/azure/AzureAdTokenClient.kt index 10b6d3e..68abe77 100644 --- a/src/main/kotlin/no/nav/syfo/auth/azure/AzureAdTokenClient.kt +++ b/src/main/kotlin/no/nav/syfo/auth/azure/AzureAdTokenClient.kt @@ -42,7 +42,7 @@ class AzureAdTokenClient @Autowired constructor( private fun commonRequestBody(scopeClientId: String): LinkedMultiValueMap { val body = LinkedMultiValueMap() body.add("client_id", azureAppClientId) - body.add("scope", "api://$scopeClientId/.default") + body.add("scope", "$scopeClientId/.default") body.add("client_secret", azureAppClientSecret) return body }