I am unable to find a good document outlining the holistic approach to enable ME-ID auth in a Blazor Web App using NET8. For NET 8 there is a document showing the approach for a standalone WASM app with ME-ID:
https://learn.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/standalone-with-microsoft-entra-id?view=aspnetcore-8.0
But there is no such document explaining the approach with a Blazor Web App. Previously, in NET 7 we had the WASM Standalone ME-ID doc :
https://learn.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/standalone-with-microsoft-entra-id?view=aspnetcore-7.0
We also had a document for Net Core Hosted with ME-ID:
https://learn.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/hosted-with-microsoft-entra-id?view=aspnetcore-7.0
Since the Blazor Web App has replaced the Blazor Hosted app in Net 8 it would be nice to have a similar document showing the full approach to set up ME-ID in a Blazor Web App.
I have played with different methods and have got it working, but only if I put my components in InteractiveServer rendering. Otherwise I lose all interactivity in my project (onclick handlers don't fire etc). This prevents me from taking advantage of InteractiveAuto and InteractiveWASM just to get auth working.
I would like to be able to direct users to the MS auth prompt when they are not authenticated, read their id from httpcontext when from either the main or client projects when they are authenticated, and allow them to sign out / change accounts. This is all possible in NET 7 following the hosted ME-ID doc from the link above.
Please let me know if there is an appropriate doc for this for NET8 Blazor Web App that I am missing.