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 }