Prerendering Blazor WASM .NET 5 app with authentication throws error #28025
Labels
affected-medium
This issue impacts approximately half of our customers
area-blazor
Includes: Blazor, Razor Components
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
feature-blazor-wasm
This issue is related to and / or impacts Blazor WebAssembly
feature-blazor-wasm-auth
feature-prerendering
Issues related to prerendering blazor components
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
Priority:2
Work that is important, but not critical for the release
severity-blocking
This label is used by an internal tool
Status: Resolved
Milestone
I have a Blazor WASM application using OIDC authentication (based on this https://docs.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/standalone-with-authentication-library?view=aspnetcore-5.0&tabs=visual-studio). This works fine.
Now, when I add WASM prerendering (based on this https://docs.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/additional-scenarios?view=aspnetcore-5.0#support-prerendering-with-authentication), then it no longer works. I get a strange behavior after the app loads and 404 errors. The redirect after the login then also hits a 404.
In fact, every route is giving a 404... hm...
Here is a small demo video:
This is the demo code:
https://github.com/thinktecture/blazor-webassembly-demo/tree/prerender
.cc @guardrex
dotnet/AspNetCore.Docs#20696
The text was updated successfully, but these errors were encountered: