microsoft-authentication-library-for-js
microsoft-authentication-library-for-js copied to clipboard
authority should be optional when providing azureCloudOptions + tenant
Core Library
MSAL Node (@azure/msal-node)
Wrapper Library
Not Applicable
Public or Confidential Client?
Confidential
Description
When azureCloudOptions and tenant are both set, authority (and known authorities) should be optional & determined automatically.
Currently, authority just remains set to the default of: https://login.microsoftonline.com/common
Setting:
{
azureCloudOptions: {
azureCloudInstance: AzureCloudInstance.AzurePublic,
tenant: '(tenant id)'
}
}
Should have the same result as:
{
authority: `${AzureCloudInstance.AzurePublic}/(tenant id)`,
knownAuthorities: [`${AzureCloudInstance.AzurePublic}/(tenant id)`],
azureCloudOptions: {
azureCloudInstance: AzureCloudInstance.AzurePublic,
tenant: '(tenant id)'
}
}