From 2f2b30c2276fc3f194dbe258d67ddb2a5e57b792 Mon Sep 17 00:00:00 2001 From: Arnaud Leclerc Date: Mon, 5 Apr 2021 13:20:15 +0200 Subject: [PATCH] Adding ClientId to all authentication modes --- .../azureMapsControl/core/core.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/AzureMapsControl.Components/azureMapsControl/core/core.ts b/src/AzureMapsControl.Components/azureMapsControl/core/core.ts index e2f2ae4..0006f0c 100644 --- a/src/AzureMapsControl.Components/azureMapsControl/core/core.ts +++ b/src/AzureMapsControl.Components/azureMapsControl/core/core.ts @@ -173,12 +173,14 @@ export class Core { } else if (configuration.authType === 'subscriptionKey') { azmaps.setAuthenticationOptions({ authType: configuration.authType, - subscriptionKey: configuration.subscriptionKey + subscriptionKey: configuration.subscriptionKey, + clientId: configuration.clientId }); } else { azmaps.setAuthenticationOptions({ authType: configuration.authType, - getToken: Extensions.getTokenCallback + getToken: Extensions.getTokenCallback, + clientId: configuration.clientId }) }