.Net 8.0 Blazor

I am comfortable securing a blazor server and a blazor wasm (and api) app using Auth0, thanks to @andrea.chiarelli’s excellent documentation. It seems, however, that the new blazor “united” (Blazor Web App in Visual Studio) project type in .Net 8.0 allows for individual pages or components in a project to be wasm, server, static or server rendered. This is an attempt to side-step the limitations of wasm and server. If I decided to adopt this and have components with different rendering models its not clear to me how the Auth would work with Auth0. Just wondering whether @andrea.chiarelli has any plans to document how this might work? Thank you.

Hey @Ditchford, thank you again for appreciating my content on Blazor :slightly_smiling_face: :pray:

Regarding support for the new Blazor model, I’m at the beginning of my exploration of OIDC integration, and I’ve found that there is no clear guidance on the Microsoft’s side so far.
Here are a couple of threads on the same request as yours:

Also, the current .NET 8 Blazor documentation still refers to server and client hosting without providing guidance for the mixed model.

I’d like to do some testing in the near future to add Blazor WebApp support to the Auth0 Templates for .NET as well, but I’d like to rely on official guidelines. Stay tuned.

In the meantime, any suggestions and references are welcome

1 Like

Hey @andrea.chiarelli. Thanks for the info. I get the feeling Microsoft were rushed trying to get the mixed mode across the line for .Net 8.0. I think I’ll stick with .Net 7.0 for a while. If I do come across any information, I will let you know.

1 Like

Re; “any suggestions/references” above:
I found this while looking at issue 49870 referenced above:

There is an unofficial example linked 3 weeks ago that may be relevant:

Hopefully helpful. I’m not planning on any WASM in my app re-write so I’m waiting on the latest .net8 server-only version of the above.

1 Like

Thank you for sharing, @zgrose! I’ll take a look at it

1 Like

Any additional updates on Auth0 for .NET 8 Blazor?

Hey @ammonmanning,
Thank you for joining the Auth0 Community and welcome!
Unfortunately, there are no updates currently. I’ll post here when I have updates.
Thanks for your interest.