Skip to content

Add WebAssembly to the .NET 10 Blazor Hybrid Identity sample - #686

Open
mattleibow wants to merge 5 commits into
dotnet:mainfrom
mattleibow:mattleibow-blazor-identity-webassembly
Open

mattleibow wants to merge 5 commits into
dotnet:mainfrom
mattleibow:mattleibow-blazor-identity-webassembly

Conversation

@mattleibow

@mattleibow mattleibow commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 09027a7717d69f79ce6077f8e0146528adcc5c5e

Dimension Assessment Rationale
Change confidence 8/10 ↑ Server, hosted WebAssembly, and shared components build with .NET 10 after merging main.
↑ Upstream redirect validation retained unchanged; 14 navigation cases pass.
↓ Current-head Snippets 5000 is running; native platforms and live authentication were not re-exercised after the merge.

Extends MauiBlazorWebIdentity to demonstrate server rendering, WebAssembly, and native MAUI using one ASP.NET Core Identity backend, following the .NET 10 Individual Accounts template.

Changes

  • Add a hosted WebAssembly client and InteractiveAuto routing. Account pages remain static SSR; browser API requests use cookies.
  • Modernize native session handling and HTTP clients while preserving SecureStorage, Remember me, and token refresh. Add native registration with server-owned browser confirmation.
  • Keep Identity and weather endpoint errors out of HTML status pages so a rejected refresh returns 401 and clears the native session.
  • Add Apple scene lifecycle support, update dependencies, and rewrite the setup guide.

Notes

Native authentication retains Identity's opaque bearer tokens. SecureStorage saves/deletes are best-effort and logged; native logout is local-only. Mac Catalyst now requires 17.0 (macOS 14). The no-op email sender and demo confirmation link remain for local use.

Verification

  • Built server/WASM, Android, and iOS simulator targets during development; the latest native revision was built for iOS.
  • Exercised web login/logout and native registration, confirmation, bearer login/refresh, rejected-refresh cleanup, Remember me, and storage-failure behavior.
  • iOS builds used a local Xcode version-check override because the installed Apple workload predates Xcode 27; the override is not in project configuration.
  • After merging current main, built server/WASM/shared with .NET 10.0.404 and checked 14 local redirect, external URL rejection, and app-base-path cases.

mattleibow and others added 3 commits October 30, 2026 17:57
Use the .NET 10 InteractiveAuto Identity structure for shared server and browser UI. Preserve native token persistence through refresh, enable the Apple scene lifecycle, and align web dependencies and scaffolding with the .NET 10 release template.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Refactor MAUI session and token handling, configure factory-managed HTTP clients, and add native registration with server-owned confirmation.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Opt API endpoints out of HTML status pages, discard unusable saved credentials, and log best-effort storage failures. Remove the unused shared WebAssembly authentication dependency and rewrite the setup guide.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
mattleibow and others added 2 commits October 31, 2026 04:21
Build the web entry point, including hosted WebAssembly and shared components, instead of the multi-platform MAUI solution on the generic Windows runner.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Resolve the Identity redirect conflict by keeping the current main implementation while retaining the WebAssembly and native authentication sample changes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant