-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Update to @azure/[email protected] #24827
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7f5e8c1
Update to @azure/[email protected]
captainsafia 1d29401
Retain promise during initialization
captainsafia 995bf46
Set knownAuthority hostname from authority URL
captainsafia f66db6c
Add KnownAuthorities config option and fix silent sign-in
captainsafia bb97305
Set knownAuthorities default to empty list
captainsafia 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
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 |
|---|---|---|
|
|
@@ -13,6 +13,6 @@ | |
| "webpack-cli": "^3.3.10" | ||
| }, | ||
| "dependencies": { | ||
| "msal": "^1.2.1" | ||
| "@azure/msal-browser": "^2.0.0" | ||
| } | ||
| } | ||
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,6 +2,20 @@ | |
| # yarn lockfile v1 | ||
|
|
||
|
|
||
| "@azure/msal-browser@^2.0.0": | ||
| version "2.0.0" | ||
| resolved "https://registry.yarnpkg.com/@azure/msal-browser/-/msal-browser-2.0.0.tgz#09eb3ed2112bdcd11c751f1c0b9cec588b49b8c6" | ||
| integrity sha512-0L4XksaXmtl870bQTPxbHCkxMEMmSbsgkkVpb6bvXg8ngOLWnkxvV6tstj84JtQHcJPjNYkYY41jgBQxgC4/KQ== | ||
| dependencies: | ||
| "@azure/msal-common" "1.0.0" | ||
|
|
||
| "@azure/[email protected]": | ||
| version "1.0.0" | ||
| resolved "https://registry.yarnpkg.com/@azure/msal-common/-/msal-common-1.0.0.tgz#421f4859e6cb68cfacb03bb2c6c873efdffc76f0" | ||
| integrity sha512-l/+1Z9kQWLAlMwJ/c3MGhy4ujtEAK/3CMUaUXHvjUIsQknLFRb9+b3id5YSuToPfAvdUkAQGDZiQXosv1I+eLA== | ||
| dependencies: | ||
| debug "^4.1.1" | ||
|
|
||
| "@webassemblyjs/[email protected]": | ||
| version "1.8.5" | ||
| resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.8.5.tgz#51b1c5fe6576a34953bf4b253df9f0d490d9e359" | ||
|
|
@@ -690,6 +704,13 @@ debug@^2.2.0, debug@^2.3.3: | |
| dependencies: | ||
| ms "2.0.0" | ||
|
|
||
| debug@^4.1.1: | ||
| version "4.1.1" | ||
| resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791" | ||
| integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw== | ||
| dependencies: | ||
| ms "^2.1.1" | ||
|
|
||
| decamelize@^1.2.0: | ||
| version "1.2.0" | ||
| resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" | ||
|
|
@@ -1667,12 +1688,10 @@ [email protected]: | |
| resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" | ||
| integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= | ||
|
|
||
| msal@^1.2.1: | ||
| version "1.2.1" | ||
| resolved "https://registry.yarnpkg.com/msal/-/msal-1.2.1.tgz#08133e37ab0b9741866c89a3fadc55aadb980723" | ||
| integrity sha512-Zo28eyRtT/Un+zcpMfPtTPD+eo/OqzsRER0k5dyk8Mje/K1oLlaEOAgZHlJs59Y2xyuVg8OrcKqSn/1MeNjZYw== | ||
| dependencies: | ||
| tslib "^1.9.3" | ||
| ms@^2.1.1: | ||
| version "2.1.2" | ||
| resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" | ||
| integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== | ||
|
|
||
| nan@^2.12.1: | ||
| version "2.14.0" | ||
|
|
@@ -2485,7 +2504,7 @@ ts-loader@^6.2.1: | |
| micromatch "^4.0.0" | ||
| semver "^6.0.0" | ||
|
|
||
| tslib@^1.9.0, tslib@^1.9.3: | ||
| tslib@^1.9.0: | ||
| version "1.10.0" | ||
| resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a" | ||
| integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ== | ||
|
|
||
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
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.
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.
We should make sure this doesn't give AAD any grief. Otherwise we'll have to do it conditionally.
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.
Sounds good. I've added this to make my dev loop faster but can remove later if this is not necessary.
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.
I think we'll have to expose knownAuthorities in the MsalProviderOptions and maybe do this by default if no authorities are specified, it might be that this ends up clashing with AAD so it is something we must only do in B2C, similar to the ValidateAuthority parameter
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.
I've added it as an option to MsalProviderOptions and added fallback logic in the AuthenticationService.
Should we achieve this by setting it to default to an empty list? Not sure what kind of collisions we can expect here...
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.
I can imagine AAD having an authority parameter and a knownAuthorities parameter that doesn't match. I'm just saying that we should validate that this doesn't break AAD, just that.