From 6c73ab3d97420875aec95bf8faf3f87a8ce232a6 Mon Sep 17 00:00:00 2001 From: JeremiahUy Date: Mon, 2 Dec 2024 10:23:06 +0100 Subject: [PATCH] FIX: grant type key --- .../no/nav/data/common/security/azure/AzureTokenConsumer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backend/polly-app/src/main/java/no/nav/data/common/security/azure/AzureTokenConsumer.java b/apps/backend/polly-app/src/main/java/no/nav/data/common/security/azure/AzureTokenConsumer.java index 710501188..aefc9fae6 100644 --- a/apps/backend/polly-app/src/main/java/no/nav/data/common/security/azure/AzureTokenConsumer.java +++ b/apps/backend/polly-app/src/main/java/no/nav/data/common/security/azure/AzureTokenConsumer.java @@ -94,7 +94,7 @@ private void updateToken(String scope) { private MultiValueMap formParameters(String scope) { MultiValueMap formParameters = new LinkedMultiValueMap<>(); - formParameters.add("grant-type", "client_credentials"); + formParameters.add("grant_type", "client_credentials"); formParameters.add("scope", scope); return formParameters;