Skip to content

authority should be optional when providing azureCloudOptions + tenant #7591

Open
@timtucker-dte

Description

@timtucker-dte

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋Awaiting response from the MSAL.js teamconfidential-clientIssues regarding ConfidentialClientApplicationsfeature-unconfirmedmsal-nodeRelated to msal-node packagequestionCustomer is asking for a clarification, use case or information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions