From 6c29e2bb591df725e1a78e068fd8253b2a7cbb59 Mon Sep 17 00:00:00 2001 From: guardrex <1622880+guardrex@users.noreply.github.com> Date: Tue, 8 Sep 2026 14:06:56 -0400 Subject: [PATCH 1/4] Blazor RC1 coverage --- .../aspnetcore-11/includes/blazor.md | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/aspnetcore/release-notes/aspnetcore-11/includes/blazor.md b/aspnetcore/release-notes/aspnetcore-11/includes/blazor.md index c10b1da09cd2..68136db0d07b 100644 --- a/aspnetcore/release-notes/aspnetcore-11/includes/blazor.md +++ b/aspnetcore/release-notes/aspnetcore-11/includes/blazor.md @@ -590,35 +590,33 @@ Hosted services are started when the app starts and stopped when it shuts down, ### Configure Blazor client behavior from the server - + Blazor apps can now configure client-side startup behavior from the server in C# when mapping Razor components instead of hand-writing `Blazor.start` JavaScript. `WithBrowserOptions` sets options that the server serializes into the rendered page and the Blazor script applies in the browser, across the Server, WebAssembly, and Auto render modes. The options cover the client log level, interactive Server reconnection, whether enhanced navigation preserves the DOM, and a WebAssembly runtime's environment name, culture, and environment variables: ```csharp app.MapRazorComponents() .AddInteractiveServerRenderMode() + .AddInteractiveWebAssemblyRenderMode() .WithBrowserOptions(options => { options.LogLevel = LogLevel.Warning; - options.Server.ReconnectionMaxRetries = 10; - options.Server.ReconnectionRetryInterval = TimeSpan.FromSeconds(1.5); - options.Ssr.PreserveDom = true; - options.WebAssembly.EnvironmentName = "Staging"; - options.WebAssembly.EnvironmentVariables["OTEL_EXPORTER_OTLP_ENDPOINT"] = + options.InteractiveServer.ReconnectionMaxRetries = 10; + options.InteractiveServer.ReconnectionRetryInterval = TimeSpan.FromSeconds(1.5); + options.StaticServer.PreserveDom = true; + options.InteractiveWebAssembly.EnvironmentName = "Staging"; + options.InteractiveWebAssembly.EnvironmentVariables["OTEL_EXPORTER_OTLP_ENDPOINT"] = "https://localhost:4318"; }); ``` You can also set the options from a component with `` or read the resolved options from `HttpContext` with `GetBrowserOptions()`. -The API was introduced in Preview 4 and reshaped in Preview 6 to follow options conventions. If you adopted the earlier shape, `WithBrowserConfiguration` is now `WithBrowserOptions`, `BrowserConfiguration` is now `BrowserOptions`, `ServerBrowserOptions` is now `InteractiveServerBrowserOptions`, `SsrBrowserOptions.DisableDomPreservation` is now `PreserveDom` (with the opposite meaning), and `CircuitInactivityTimeoutMs` is now `CircuitInactivityTimeout` (a `TimeSpan`). - For more information, see the following resources: * [API Proposal: BrowserOptions for server-to-client configuration (`dotnet/aspnetcore` #66393)](https://github.com/dotnet/aspnetcore/issues/66393) * [Reshape BrowserConfiguration API per review (BrowserOptions) while preserving the JS wire format (`dotnet/aspnetcore` #67337)](https://github.com/dotnet/aspnetcore/pull/67337) +* [Reshape BrowserOptions server-to-client configuration API per review (`dotnet/aspnetcore` #67918)](https://github.com/dotnet/aspnetcore/pull/67918) Please don't comment on closed issues and PRs. Open a new issue to provide feedback on this API. @@ -888,3 +886,9 @@ The new `CacheView` component caches the rendered output of a Razor component su ``` For more information, see . + +## Blazor Server circuits update after authentication refresh + +Interactive Server components can now receive the refreshed `ClaimsPrincipal` without reconnecting the circuit ([dotnet/aspnetcore #68221](https://github.com/dotnet/aspnetcore/pull/68221)). The Blazor component hub and client enable authentication refresh automatically, so no additional configuration is required ([dotnet/aspnetcore #68593](https://github.com/dotnet/aspnetcore/pull/68593)). + +After the connection refreshes its authentication, Blazor updates the authentication state and raises `AuthenticationStateChanged`. Components that consume `AuthenticationStateProvider`, including `AuthorizeView`, re-render using the refreshed identity and claims. This behavior is useful when a user's roles or permissions change during an active circuit, or when a component needs to reload user-specific content after claims are refreshed. The UI can reflect the new authentication state without forcing the user to reconnect or reload the page. From 15307c409eadbed67d49eaefcb07622109a1458f Mon Sep 17 00:00:00 2001 From: guardrex <1622880+guardrex@users.noreply.github.com> Date: Tue, 8 Sep 2026 14:12:02 -0400 Subject: [PATCH 2/4] Updates --- .../release-notes/aspnetcore-11/includes/blazor.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/aspnetcore/release-notes/aspnetcore-11/includes/blazor.md b/aspnetcore/release-notes/aspnetcore-11/includes/blazor.md index 68136db0d07b..e02848537ad0 100644 --- a/aspnetcore/release-notes/aspnetcore-11/includes/blazor.md +++ b/aspnetcore/release-notes/aspnetcore-11/includes/blazor.md @@ -889,6 +889,13 @@ For more information, see Date: Tue, 8 Sep 2026 14:20:02 -0400 Subject: [PATCH 3/4] Update Blazor Server circuits section header Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- aspnetcore/release-notes/aspnetcore-11/includes/blazor.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/release-notes/aspnetcore-11/includes/blazor.md b/aspnetcore/release-notes/aspnetcore-11/includes/blazor.md index e02848537ad0..8e45c7e542db 100644 --- a/aspnetcore/release-notes/aspnetcore-11/includes/blazor.md +++ b/aspnetcore/release-notes/aspnetcore-11/includes/blazor.md @@ -887,7 +887,7 @@ The new `CacheView` component caches the rendered output of a Razor component su For more information, see . -## Blazor Server circuits update after authentication refresh +### Blazor Server circuits update after authentication refresh Interactive Server components can now receive the refreshed `ClaimsPrincipal` without reconnecting the circuit. The Blazor component hub and client enable authentication refresh automatically, so no additional configuration is required. From 4e417a8905e3a62d75fc2cb5474ca919dc0d3464 Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Tue, 8 Sep 2026 14:43:31 -0400 Subject: [PATCH 4/4] Update aspnetcore/release-notes/aspnetcore-11/includes/blazor.md Co-authored-by: Wade Pickett --- aspnetcore/release-notes/aspnetcore-11/includes/blazor.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/release-notes/aspnetcore-11/includes/blazor.md b/aspnetcore/release-notes/aspnetcore-11/includes/blazor.md index 8e45c7e542db..570429243a63 100644 --- a/aspnetcore/release-notes/aspnetcore-11/includes/blazor.md +++ b/aspnetcore/release-notes/aspnetcore-11/includes/blazor.md @@ -896,6 +896,6 @@ After the connection refreshes its authentication, Blazor updates the authentica For more information, see the following resources: * [[Blazor] Propagate SignalR authentication refresh to server circuits (`dotnet/aspnetcore` #68221)](https://github.com/dotnet/aspnetcore/pull/68221) -* [[release/11.0-rc1] Harden SignalR authentication refresh (`dotnet/aspnetcore` #68593)](https://github.com/dotnet/aspnetcore/pull/68593)) +* [[release/11.0-rc1] Harden SignalR authentication refresh (`dotnet/aspnetcore` #68593)](https://github.com/dotnet/aspnetcore/pull/68593) Please don't comment on closed issues and PRs. If you have feedback on this feature, please open a new issue on the `dotnet/aspnetcore` GitHub repository.