Skip to content

[Blazor] MSAL updates #43954

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 3 commits into from
Sep 14, 2022
Merged

[Blazor] MSAL updates #43954

merged 3 commits into from
Sep 14, 2022

Conversation

javiercn
Copy link
Member

  • Updates MSAL to the latest version.
  • Updates the typescript version used for compiling the code.
  • Replaces history on navigation
  • Adds logging for better diagnostics.
  • Leverages crypto.randomUUID to generate a random string to use for the state parameter.
  • Fixes support for requesting additional tokens interactively.
  • Prevents triming MsalProviderOptions.

Addresses #43063, #39311, #29384

@javiercn javiercn requested a review from a team as a code owner September 13, 2022 18:10
@ghost ghost added the area-blazor Includes: Blazor, Razor Components label Sep 13, 2022
Copy link
Member

@MackinnonBuck MackinnonBuck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Nothing but nits.

* Update MSAL
* Replace history on navigation
* Add logging
* Leverage crypto.randomUUID
* Fix support for requesting additional tokens interactively.
* Prevent triming MsalProviderOptions.
@javiercn javiercn force-pushed the javiercn/blazor-msal-updates branch from 797d8f9 to ac2883b Compare September 13, 2022 19:35
@javiercn javiercn changed the base branch from main to release/7.0 September 13, 2022 19:36
@javiercn
Copy link
Member Author

/azp run aspnetcore-helix-matrix

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@javiercn
Copy link
Member Author

/azp run aspnetcore-richnav

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@javiercn javiercn force-pushed the javiercn/blazor-msal-updates branch from 959df48 to 0ee2e19 Compare September 14, 2022 17:34
@javiercn javiercn force-pushed the javiercn/blazor-msal-updates branch from 0ee2e19 to d1cf7f3 Compare September 14, 2022 17:57
@javiercn
Copy link
Member Author

javiercn commented Sep 14, 2022

@Pilchie this should be good to go.

The PR updates the underlying msal.js library as well as addresses the issues mentioned above and does some additional cleanups on the implementation.

The issues are bundled together because this area requires manual validation, and it is complex to do so.

I have done manual validation for AAD and AAD B2C and we also have CTI in place in case I missed anything.

@Pilchie
Copy link
Member

Pilchie commented Sep 14, 2022

Approved for .NET 7 RC2.

@Pilchie Pilchie merged commit eb817ca into release/7.0 Sep 14, 2022
@Pilchie Pilchie deleted the javiercn/blazor-msal-updates branch September 14, 2022 20:25
@mkArtakMSFT mkArtakMSFT added this to the 7.0-rc2 milestone Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants