-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Improve prerendering and authentication experience in Blazor #27592
Comments
Thanks for contacting us. |
@captainsafia this is a dupe of #29634 feel free to close one or the other. This has a combined 15 upvotes |
Ah, I see. I'll close the other one since it's newer. |
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. |
Does this mean we cannot use pre-rendering with SPA authN flows in a feasible and reasonable way? Thanks! |
We are grooming our backlog and we don't think this issue will make the cut, while painful, there are ways around it (even if not trivial) We might reconsider this one if we get time, however is not a trivial issue and requires design, which why we are hesitant about tackling it now, (hence the backlog) |
Hi @javiercn - thanks for answering. Thanks. |
@ChristianWeyer I believe there are some docs about it, but in general involves skipping prerendering over any url that might require auth, which is why it is so painful. |
Which in reality renders it unusable, sorry. been there, done that :-) |
I temporarily resolved by using prerender.io |
May I ask if this issue is likely to help with seamless switching between Blazor Server and Blazor WebAssembly at runtime whilst authenticated? The AllinOne sample here https://github.com/ShaunCurtis/AllinOne is an excellent example which switches between Blazor modes but when attempting to add authentication lots of issues arise that prevent authentication state being recognized. I would like to
3/ Once authenticated on Server, user can seamlessly switch to Blazor WASM which maintains authenticated state on both Blazor Server and Blazor WebAssembly Is something like this currently possible and/or will this be possible in the near future? |
No. This will only help with prerendering Blazor Webassembly applications or Blazor Server applications, but not switching between the two at runtime. That is not a scenario we currently support |
Hey all! It's been a while since this issue first surfaced, and it seems it's still on the way for .NET 7. Can someone please confirm? I also don't quite understand how this is supposed to work when:
So is the proposed change here to disallow prerendering when it's tied to authentication? Hopefully there will be a way to opt-out of this behavior, as it'll quite possibly break already working prerender+auth solutions. Thanks! |
Thanks for contacting us. We're moving this issue to the |
Ok, is there a site where you can vote? I think that is an extremely important part. Without pre-rendering with authentication-dependent content, many projects fail. I would like to advocate that it be integrated into the planning for .net 8. However, I didn't quite understand what "it's very rare and low-impact issue, we will close it" means. Do you think that in this ticket the people have to participate? Or is there a voting page as mentioned above? I'm very excited about blazor. However, the initial loading time and the loading symbol right at the beginning of a page is a no-go for me. The prerendering would solve exactly these problems and would be a reason for me to only do all my projects with Blazor WASM. |
Any good way to get involved other than responding to this issue? This needs a resolution in order for Blazor Wasm to be usable in the near and far future. Pre-rendering and Authentication need to play well together. Also, we need to be able to have a well-documented method for pre-rending wasm without a Host site. Can it be built so that, for example, pre-rendering is done for bots/facebook posts, etc. and not "user" requests? |
Hi @captainsafia - could you please update us on where we are with this feature? This is still a very important part of using Blazor WASM in the 'real world' :-) Thank you! |
Thanks for contacting us. We're moving this issue to the |
A lot of the initial pain points have been addressed during .NET 8 in this space. The remaining work here is to simply passing authentication state from server to client which we will address as part of #52769 |
Enabling pre-rendering on a Blazor WASM app with authentication is difficult.
Related issues:
The text was updated successfully, but these errors were encountered: