-
Notifications
You must be signed in to change notification settings - Fork 268
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
Update Blazor Samples For .NET 8 #142
Comments
I second this, I have been looking all over the web trying to find an example of how to properly implement SSR with Auto Mode (SignalR and WASM). I have tried various configurations with BFF and Server Side but have not had much luck. If there is a working example out there that would be greatly that we could repost or if one could be added to this repo, that would be great help in trying to solve my problem. |
It needs a BlazorSSR example with Asp.Net Core Identity, so to have the default user management solution handled. |
What we need is a Blazor Web App sample that uses BFF for coordinating authentication and API calls that works for all render modes. |
If possible, an example (or explanation somewhere) of how to use it with SignalR from a Blazor WASM page/component would be very welcome. |
One sample that covers all rendering modes is ideal (https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-8.0). I was thinking that it would help, for now, to target the Interactive WebAssembly, which renders on the server, as well on the client. |
Is there any approximate date when we can expect the release of the updated samples? |
@Liandrel , I managed to get this working with an app I am working on. While I can't show source, I can point you to the same location where I found my starting point. One caveat is that while it does work; it is not integrated into Duende at this time. https://github.com/josephdecock/InteractiveBlazorAuth/tree/main Hope this helps |
@b1tzer0, did you get "all of it" working based on that InteractiveBlazorAuth example? Based on your post, I also tried it out and run into issues, some of which are mentioned further above. For example:
@josephdecock, I would essentially like to set up a new ASP.NET 8.0 Blazor Web App with Interactive WebAssembly (avoiding SignalR) plus a Web API and then add IdentityServer-based authentication and authorization. While your InteractiveBlazorAuth example looks like a good starting point (which does more than what I need because it demonstrates render modes that I likely don't need), it has the issues mentioned above. So, unfortunately, there is currently no adequate, working example that demonstrates the mere basics. |
@ThomasBarnekow, I can confirm the /bff/user appears to work in both WASM and Blazor Server (SignalR) Here you can see the only websocket is the browser refresh: Logout is hit and miss, while in debug it does in fact take me to the logout page, but if I am running outside of debug mode the page just refreshes. Looking at it, I feel like I messed that up myself, when I go directly to the URL it works with no problem. This is the code I am using for my bff authentication state provider.
Here is where I wire it up in my .Client startup file
|
Is there an update to this issue? We've got an existing set of Blazor WASM applications that are using BFF, and we want to move across to the new rendering modes in .NET 8/9. I can't see any updated documentation unfortunately. |
Second this, looking for updated samples. |
I did notice some updated samples in the BFF repo in the tag for release 3 preview 2 Not sure if it is what you are looking for though. I didn't notice anything that was glaring at me saying this is what you want for auto. Sorry for the short response, on my mobile device |
No description provided.
The text was updated successfully, but these errors were encountered: