-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Instance Discovery 2.x #1756
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
Closed
Closed
Instance Discovery 2.x #1756
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
f3b6117
Port changes from msal-core
tnorling 7ae8baf
Merge branch 'dev' of https://github.com/AzureAD/microsoft-authentica…
tnorling 6025e84
Add support for preferred_cache and preferred_network
tnorling 7872ca2
Update references to old temp constant
tnorling dcaff8e
Merge branch 'dev' of https://github.com/AzureAD/microsoft-authentica…
tnorling a71e396
Cleanup getInstanceMetadata
tnorling b9d4e62
Cleanup
tnorling 9d10e65
Update node and browser
tnorling 2600876
Adding code for instance_aware authentication in msal-browser
pkanher617 5307fa8
Adding graph hostname and graph host to the auth result
pkanher617 710075d
Adding AuthCodePayload object
pkanher617 d96595f
Rename AuthCodeResponse file
pkanher617 b2c6aa7
Update PublicClientApplication.ts
pkanher617 53de8da
adding instance aware sample
pkanher617 171d4d0
Remove policy from createAccount
tnorling 570b361
Update environment for adfs
tnorling 55f7be5
All common tests passing
tnorling 4aead0a
Browser tests passing
tnorling 4f15a91
Add tests
tnorling 4662361
Merge branch 'instance-aware-2.0' of https://github.com/AzureAD/micro…
tnorling 0dddb02
Add error
tnorling ed17743
Update untrustedAuthority error message
tnorling 27b0530
Address feedback
tnorling f939af1
Address feedback
tnorling 045acbe
Revert VScode settings
tnorling da430bd
Revert VScode settings
tnorling 663e604
Add performance doc
tnorling 4d35732
Add performance doc
tnorling 811121a
Revert "Add performance doc"
tnorling d4686bd
Revert "Add performance doc"
tnorling 5552d53
Revert "Revert VScode settings"
tnorling d678d50
Revert "Revert VScode settings"
tnorling 30a8394
Revert "Address feedback"
tnorling c5a88a9
Revert "Address feedback"
tnorling 842a292
Revert "Update untrustedAuthority error message"
tnorling d89d5c6
Revert "Add error"
tnorling c326777
Revert "Merge branch 'instance-aware-2.0' of https://github.com/Azure…
tnorling File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
import { SystemOptions, LoggerOptions, INetworkModule, LogLevel, DEFAULT_SYSTEM_OPTIONS, Constants } from "@azure/msal-common"; | ||
import { SystemOptions, LoggerOptions, INetworkModule, LogLevel, DEFAULT_SYSTEM_OPTIONS, Constants, IInstanceDiscoveryMetadata } from "@azure/msal-common"; | ||
import { BrowserUtils } from "../utils/BrowserUtils"; | ||
import { BrowserConstants } from "../utils/BrowserConstants"; | ||
|
||
|
@@ -14,6 +14,7 @@ export type BrowserAuthOptions = { | |
clientId: string; | ||
authority?: string; | ||
knownAuthorities?: Array<string>; | ||
instanceMetadata?: Array<IInstanceDiscoveryMetadata>; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Naming here might get confusing when we implement the other perf changes which introduced |
||
redirectUri?: string | (() => string); | ||
postLogoutRedirectUri?: string | (() => string); | ||
navigateToLoginRequestUrl?: boolean; | ||
|
@@ -67,6 +68,7 @@ const DEFAULT_AUTH_OPTIONS: BrowserAuthOptions = { | |
clientId: "", | ||
authority: `${Constants.DEFAULT_AUTHORITY}/`, | ||
knownAuthorities: [], | ||
instanceMetadata: [], | ||
redirectUri: () => BrowserUtils.getCurrentUri(), | ||
postLogoutRedirectUri: () => BrowserUtils.getCurrentUri(), | ||
navigateToLoginRequestUrl: true | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.