neozhu / CleanArchitectureWithBlazorServer

This is a repository for creating a Blazor Server dashboard application following the principles of Clean Architecture
https://architecture.blazorserver.com/
MIT License
819 stars 221 forks source link

What is the easiest way to remove the auth/login ? #686

Closed punkouter25 closed 4 months ago

punkouter25 commented 5 months ago

So that anon users automatically goto the main page? Not sure if its a quick setting or I need to make alot of changes?

neozhu commented 5 months ago

just change here.

image
punkouter25 commented 5 months ago

just comment this out ? still need to log in though

   // services.ConfigureApplicationCookie(options => { options.LoginPath = "/pages/authentication/login"; });
neozhu commented 5 months ago

just comment this out ? still need to log in though

   // services.ConfigureApplicationCookie(options => { options.LoginPath = "/pages/authentication/login"; });

You can access this page without needing to log in. https://architecture.blazorserver.com/public/index

if you want to disable authentication, you need to remove AddAuthenticationService() function in the infrastructure project