Skip to content
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

.NET5 RC1: WebAssemblyPrerendered with authentication enabled #26270

Closed
ChristianWeyer opened this issue Sep 24, 2020 · 5 comments
Closed

.NET5 RC1: WebAssemblyPrerendered with authentication enabled #26270

ChristianWeyer opened this issue Sep 24, 2020 · 5 comments
Labels
affected-few This issue impacts only small number of 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 ✔️ Resolution: Duplicate Resolved as a duplicate of another issue severity-major This label is used by an internal tool Status: Resolved
Milestone

Comments

@ChristianWeyer
Copy link

Trying to activate WASM pre-rendering gets a lot more involved and complicated when you are beyond a Hello World app. E.g. if you have authentication in your Blazor WASM client and want to do pre-rendering, you get this exception:

InvalidOperationException: Cannot provide a value for property 'AuthenticationStateProvider' on type 'Microsoft.AspNetCore.Components.Authorization.CascadingAuthenticationState'. There is no registered service of type 'Microsoft.AspNetCore.Components.Authorization.AuthenticationStateProvider'.
Microsoft.AspNetCore.Components.ComponentFactory+<>c__DisplayClass6_0.<CreateInitializer>g__Initialize|2(IServiceProvider serviceProvider, IComponent component)

Is there a best practice here to solve this?

.cc @guardrex

.NET 5 SDK: 5.0.100-rc.1.20452.10

@guardrex
Copy link
Contributor

Thanks @ChristianWeyer ... Cross-linking the docs issue (dotnet/AspNetCore.Docs #19503) for my visibility to this.

@mkArtakMSFT mkArtakMSFT added area-blazor Includes: Blazor, Razor Components feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly enhancement This issue represents an ask for new feature or an enhancement to an existing one labels Sep 24, 2020
@mkArtakMSFT mkArtakMSFT added this to the Next sprint planning milestone Sep 24, 2020
@ghost
Copy link

ghost commented Sep 24, 2020

Thanks for contacting us.
We're moving this issue to the Next sprint planning milestone for future evaluation / consideration. We will evaluate the request when we are planning the work for the next milestone. To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

@SteveSandersonMS SteveSandersonMS added affected-few This issue impacts only small number of customers severity-major This label is used by an internal tool labels Oct 7, 2020 — with ASP.NET Core Issue Ranking
@ghost
Copy link

ghost commented Oct 9, 2020

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@ChristianWeyer
Copy link
Author

Just a quick check @captainsafia @javiercn: do you know when we can see a viable solution for the issue at hand?
(Including #27592)

Thanks a lot.

@danroth27
Copy link
Member

We're working on this as part of #27592.

@danroth27 danroth27 added the ✔️ Resolution: Duplicate Resolved as a duplicate of another issue label Oct 13, 2022
@ghost ghost added the Status: Resolved label Oct 13, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Nov 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affected-few This issue impacts only small number of 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 ✔️ Resolution: Duplicate Resolved as a duplicate of another issue severity-major This label is used by an internal tool Status: Resolved
Projects
None yet
Development

No branches or pull requests

6 participants