Skip to content

Commit

Permalink
Adding ClientId to all authentication modes
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudleclerc committed Apr 5, 2021
1 parent d0de70a commit 2f2b30c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/AzureMapsControl.Components/azureMapsControl/core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
}

Expand Down

0 comments on commit 2f2b30c

Please sign in to comment.