Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[release/8.0] Preserve RemoteAuthenticationContext during trimming if used in JS interop#54655

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
wtgodbe merged 1 commit intorelease/8.0fromhalter73/49956-8.0
Apr 2, 2024

Conversation

@halter73
Copy link
Member

@halter73halter73 commentedMar 21, 2024
edited
Loading

Backport of#54225 to release/8.0

Description

PreserveRemoteAuthenticationContext from Microsoft.AspNetCore.Components.WebAssembly.Authentication during trimming if used in JS interop in order to avoid errors during sign in and sign out.

Fixes#49956 and other customer-reported issues. See original PR for full list.

Customer Impact

With certain non-default, butcommon configurations, over trimming can cause Blazor WASM AAD authentication to show 'There was an error trying to log you in: '"undefined" is not valid JSON' despite the login succeeding.

login error

This can also cause the final redirect to fail after logging out causing the user to get stuck "Processing logout callback..." instead of redirecting back to the previous page.

logout error

The over trimming also prevents "extraQueryParams" from being sent to the OIDC provider as reported in#53409.

Regression?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

This change is thoroughly tested and simply preserves more necessary members during trimming of the Microsoft.AspNetCore.Components.WebAssembly.Authentication assembly.

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

@halter73halter73 added the Servicing-considerShiproom approval is required for the issue labelMar 21, 2024
@halter73halter73 requested a review fromjaviercnMarch 21, 2024 00:37
@halter73halter73 requested a review froma team as acode ownerMarch 21, 2024 00:37
@ghostghost added the area-blazorIncludes: Blazor, Razor Components labelMar 21, 2024
@dotnet-policy-servicedotnet-policy-servicebot added this to the8.0.x milestoneMar 21, 2024
@halter73halter73 changed the titlePreserve RemoteAuthenticationContext during trimming if used in JS interop[release/8.0] Preserve RemoteAuthenticationContext during trimming if used in JS interopMar 21, 2024
@rbhandarbhanda modified the milestones:8.0.x,8.0.5Mar 21, 2024
@rbhandarbhanda added Servicing-approvedShiproom has approved the issue and removed Servicing-considerShiproom approval is required for the issue labelsMar 21, 2024
@halter73
Copy link
MemberAuthor

@javiercn Can you sign off on this? This is a straight backport of#54225.

@dotnet-policy-servicedotnet-policy-servicebot added the pending-ci-rerunWhen assigned to a PR indicates that the CI checks should be rerun labelApr 2, 2024
@wtgodbewtgodbe merged commit53e662d intorelease/8.0Apr 2, 2024
@wtgodbewtgodbe deleted the halter73/49956-8.0 branchApril 2, 2024 21:03
@wtgodbewtgodbe removed the pending-ci-rerunWhen assigned to a PR indicates that the CI checks should be rerun labelApr 2, 2024
@dotnet-policy-servicedotnet-policy-servicebot modified the milestone:8.0.5Apr 2, 2024
oskogstad referenced this pull request in Altinn/dialogportenMay 26, 2024
[![MendRenovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)This PR contains the following updates:| Package | Change | Age | Adoption | Passing | Confidence ||---|---|---|---|---|---|| [Microsoft.AspNetCore.Authentication.JwtBearer](https://asp.net/)([source](https://togithub.com/dotnet/aspnetcore)) | `8.0.4` -> `8.0.5`|[![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.AspNetCore.Authentication.JwtBearer/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.AspNetCore.Authentication.JwtBearer/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.AspNetCore.Authentication.JwtBearer/8.0.4/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.AspNetCore.Authentication.JwtBearer/8.0.4/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|| [Microsoft.AspNetCore.Mvc.NewtonsoftJson](https://asp.net/)([source](https://togithub.com/dotnet/aspnetcore)) | `8.0.4` -> `8.0.5`|[![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.AspNetCore.Mvc.NewtonsoftJson/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.AspNetCore.Mvc.NewtonsoftJson/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.AspNetCore.Mvc.NewtonsoftJson/8.0.4/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.AspNetCore.Mvc.NewtonsoftJson/8.0.4/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|| [Microsoft.AspNetCore.OpenApi](https://asp.net/)([source](https://togithub.com/dotnet/aspnetcore)) | `8.0.4` -> `8.0.5`|[![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.AspNetCore.OpenApi/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.AspNetCore.OpenApi/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.AspNetCore.OpenApi/8.0.4/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.AspNetCore.OpenApi/8.0.4/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)||[Microsoft.EntityFrameworkCore.Relational](https://docs.microsoft.com/ef/core/)([source](https://togithub.com/dotnet/efcore)) | `8.0.4` -> `8.0.5` |[![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.EntityFrameworkCore.Relational/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.EntityFrameworkCore.Relational/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.EntityFrameworkCore.Relational/8.0.4/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.EntityFrameworkCore.Relational/8.0.4/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)||[Microsoft.EntityFrameworkCore.Tools](https://docs.microsoft.com/ef/core/)([source](https://togithub.com/dotnet/efcore)) | `8.0.4` -> `8.0.5` |[![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.EntityFrameworkCore.Tools/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.EntityFrameworkCore.Tools/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.EntityFrameworkCore.Tools/8.0.4/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.EntityFrameworkCore.Tools/8.0.4/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|| [Microsoft.Extensions.Caching.StackExchangeRedis](https://asp.net/)([source](https://togithub.com/dotnet/aspnetcore)) | `8.0.4` -> `8.0.5`|[![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.Extensions.Caching.StackExchangeRedis/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.Extensions.Caching.StackExchangeRedis/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.Extensions.Caching.StackExchangeRedis/8.0.4/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.Extensions.Caching.StackExchangeRedis/8.0.4/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|| [Microsoft.Extensions.Http.Polly](https://asp.net/)([source](https://togithub.com/dotnet/aspnetcore)) | `8.0.4` -> `8.0.5`|[![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.Extensions.Http.Polly/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.Extensions.Http.Polly/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.Extensions.Http.Polly/8.0.4/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.Extensions.Http.Polly/8.0.4/8.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)|---### Release Notes<details><summary>dotnet/aspnetcore(Microsoft.AspNetCore.Authentication.JwtBearer)</summary>###[`v8.0.5`](https://togithub.com/dotnet/aspnetcore/releases/tag/v8.0.5):.NET 8.0.5[Release](https://togithub.com/dotnet/core/releases/tag/v8.0.5)##### What's Changed- \[release/8.0] Update dependencies from dotnet/source-build-externalsby [@&#8203;dotnet-maestro](https://togithub.com/dotnet-maestro) in[https://github.com/dotnet/aspnetcore/pull/54744](https://togithub.com/dotnet/aspnetcore/pull/54744)- Update branding to 8.0.5 by[@&#8203;vseanreesermsft](https://togithub.com/vseanreesermsft) in[https://github.com/dotnet/aspnetcore/pull/54907](https://togithub.com/dotnet/aspnetcore/pull/54907)- \[release/8.0] Convert to 1ES templates by[@&#8203;RussKie](https://togithub.com/RussKie) in[https://github.com/dotnet/aspnetcore/pull/54660](https://togithub.com/dotnet/aspnetcore/pull/54660)- Increase logs and delays in CanLaunchPhotinoWebViewAndClickButton by[@&#8203;Eilon](https://togithub.com/Eilon) in[https://github.com/dotnet/aspnetcore/pull/54608](https://togithub.com/dotnet/aspnetcore/pull/54608)- \[release/8.0] (deps): Bump src/submodules/googletest from `31993df`to `77afe8e` by [@&#8203;dependabot](https://togithub.com/dependabot) in[https://github.com/dotnet/aspnetcore/pull/54872](https://togithub.com/dotnet/aspnetcore/pull/54872)- \[release/8.0] Reduce helix-matrix timeout to 5 hours by[@&#8203;github-actions](https://togithub.com/github-actions) in[https://github.com/dotnet/aspnetcore/pull/54778](https://togithub.com/dotnet/aspnetcore/pull/54778)- \[release/8.0] Preserve RemoteAuthenticationContext during trimming ifused in JS interop by [@&#8203;halter73](https://togithub.com/halter73)in[https://github.com/dotnet/aspnetcore/pull/54655](https://togithub.com/dotnet/aspnetcore/pull/54655)- \[release/8.0] Improve usage of `Type.GetType` when activating typesin data protection by[@&#8203;github-actions](https://togithub.com/github-actions) in[https://github.com/dotnet/aspnetcore/pull/54762](https://togithub.com/dotnet/aspnetcore/pull/54762)- \[release/8.0] Fix route analyzer performance with highly concatenatedstrings by [@&#8203;github-actions](https://togithub.com/github-actions)in[https://github.com/dotnet/aspnetcore/pull/54763](https://togithub.com/dotnet/aspnetcore/pull/54763)- \[release/8.0] Suppress .ps1 SDL errors by[@&#8203;wtgodbe](https://togithub.com/wtgodbe) in[https://github.com/dotnet/aspnetcore/pull/54915](https://togithub.com/dotnet/aspnetcore/pull/54915)- \[release/8.0] Backport test fixes by[@&#8203;MackinnonBuck](https://togithub.com/MackinnonBuck) in[https://github.com/dotnet/aspnetcore/pull/54912](https://togithub.com/dotnet/aspnetcore/pull/54912)- \[release/8.0] Skip SpotBugs for now by[@&#8203;wtgodbe](https://togithub.com/wtgodbe) in[https://github.com/dotnet/aspnetcore/pull/54952](https://togithub.com/dotnet/aspnetcore/pull/54952)- Merging internal commits for release/8.0 by[@&#8203;vseanreesermsft](https://togithub.com/vseanreesermsft) in[https://github.com/dotnet/aspnetcore/pull/55034](https://togithub.com/dotnet/aspnetcore/pull/55034)- \[release/8.0] Update dependencies from dotnet/arcade by[@&#8203;dotnet-maestro](https://togithub.com/dotnet-maestro) in[https://github.com/dotnet/aspnetcore/pull/55061](https://togithub.com/dotnet/aspnetcore/pull/55061)- \[release/8.0] Update Wix version by[@&#8203;github-actions](https://togithub.com/github-actions) in[https://github.com/dotnet/aspnetcore/pull/55101](https://togithub.com/dotnet/aspnetcore/pull/55101)**Full Changelog**:dotnet/aspnetcore@v8.0.4...v8.0.5</details><details><summary>dotnet/efcore(Microsoft.EntityFrameworkCore.Relational)</summary>### [`v8.0.5`](https://togithub.com/dotnet/efcore/releases/tag/v8.0.5):EF Core 8.0.5This is a [patch release of EF Core8.0](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore/8.0.5)containing only updates to dependencies. There are no additional fixesin this release beyond those already shipped in EF Core 8.0.4.</details>---### Configuration📅 **Schedule**: Branch creation - "before 7am on Sunday,before 7am onWednesday" (UTC), Automerge - At any time (no schedule defined).🚦 **Automerge**: Disabled by config. Please merge this manually once youare satisfied.♻ **Rebasing**: Whenever PR becomes conflicted, or you tick therebase/retry checkbox.🔕 **Ignore**: Close this PR and you won't be reminded about theseupdates again.---- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, checkthis box---This PR has been generated by [MendRenovate](https://www.mend.io/free-developer-tools/renovate/). Viewrepository job log[here](https://developer.mend.io/github/digdir/dialogporten).<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjguMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zNjguMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->---------Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>Co-authored-by: Ole Jørgen Skogstad <skogstad@softis.net>
halter73 added a commit to halter73/AspNetCore that referenced this pull requestJun 18, 2024
halter73 added a commit to halter73/AspNetCore that referenced this pull requestJun 18, 2024
wtgodbe pushed a commit that referenced this pull requestJul 2, 2024
…#56181)* Don't require latest runtime patch for Blazor DevServer* Use exact runtime for non-servicing builds of Blazor DevServer* Publish to "trimmed" instead of "trimmed-or-threading"- This fixes a regression introduced by#54655
This was referencedNov 12, 2025
This was referencedNov 21, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@javiercnjaviercnAwaiting requested review from javiercn

1 more reviewer

@mkArtakMSFTmkArtakMSFTmkArtakMSFT approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

area-blazorIncludes: Blazor, Razor ComponentsServicing-approvedShiproom has approved the issue

Projects

None yet

Milestone

8.0.5

Development

Successfully merging this pull request may close these issues.

5 participants

@halter73@mkArtakMSFT@wtgodbe@rbhanda

[8]ページ先頭

©2009-2025 Movatter.jp