microsoft-authentication-library-for-js icon indicating copy to clipboard operation
microsoft-authentication-library-for-js copied to clipboard

authority should be optional when providing azureCloudOptions + tenant

Open timtucker-dte opened this issue 10 months ago • 0 comments

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)'
    }
}

timtucker-dte avatar Feb 25 '25 16:02 timtucker-dte