-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Instance Discovery 2.x #1811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instance Discovery 2.x #1811
Conversation
…tion-library-for-js into msal-common-instance-discovery
…tion-library-for-js into msal-common-instance-discovery
…-authentication-library-for-js into msal-common-instance-discovery-update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Approved with some comments. Please check while testing.
…tion-library-for-js into msal-common-instance-discovery-update
lib/msal-common/src/authority/ICloudInstanceDiscoveryResponse.ts
Outdated
Show resolved
Hide resolved
import { ClientConfigurationError } from "../error/ClientConfigurationError"; | ||
|
||
export class TrustedAuthority { | ||
private static CloudDiscoveryMetadata: CloudDiscoveryMetadataType = {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to make these static? can we make these all member functions of the prototype instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes because we never instantiate TrustedAuthority
this variable should only be set once
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple small changes but otherwise is ok to merge
Rebased from #1756. Ports #1582 into msal-common
Similar to the previous PR for msal-core this PR does several things in regards to Authorities:
preferred_cache
andpreferred_network
values used to determine which endpoint to hit and what authority to cache under. This is the only piece that differs from the msal-core implementation.Developers can opt out of the network call in one of 2 ways:
Scheduled Refresh will be taken in future PR