Relative Content

Tag Archive for authenticationblazor

No Logout page scaffolded with new .net 8 Blazor Web App authentication

With Visual Studio I have created a Blazor Web App .net 8. I used the wizard to generate the template with Authentication Type = Individual Account and render mode = Auto.
Everything is OK and authentication works OK with all the generated pages from the template (Login, register etc…) BUT there is NO LOGOUT razor page scafolded by the template.

Blazor server login

I’m working on a blazor server software, and I’ve now finished the database part of the server. Now there are functions such as creating a new user, deleting a user, modifying a user, verifying a user, and so on. They work fine. However, I now want to make the client log in (you don’t need to provide pages, you just need to provide logic) and add restrictions to some pages (you can log in to view, you don’t need to provide specific pages either), what should I do?