Skip to content

msal-common Performance / bypassing metadata resolution #8392

@h3rmanj

Description

@h3rmanj

Core Library

MSAL.js (@azure/msal-browser)

Wrapper Library

Not Applicable

Public or Confidential Client?

Public

Documentation Location

https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-common/docs/performance.md

Description

I remember early on when using MSAL having to follow this doc to make the library bypass fetching the metadata. However, looking at the current behavior, it seems the library can assume a sane default based on some hard-coded values, and can skip metadata resolution by itself. Is this doc relevant anymore? In which scenarios would it still be beneficial to provide cloudDiscoveryMetadata and authorityMetadata?

Also, regarding this line

⚠️ It is your application's responsibility to ensure it is using correct, up-to-date cloud instance metadata. Failure to do so may result in your application not working correctly.

What is a reasonable time-frame here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackAwaiting response from issue authordocumentationRelated to documentation.msal-browserRelated to msal-browser packagepublic-clientIssues regarding PublicClientApplicationsquestionCustomer 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