Base solution for your next web application
Open Closed

Implement a view that does not require authentication #3149


User avatar
0
FarReach created

We have an initial v3.4 ASP.NET Zero solution created using ASP.NET Core and Angular. How do we modify the dashboard or create a new view that does not require the user to authenticate? The only views that will require authentication are the admin views.

Thanks.


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    This line requires authentication for app module and it's children modules and related views. See <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/master/angular/src/app/app-routing.module.ts#L13">https://github.com/aspnetzero/aspnet-ze ... ule.ts#L13</a>.

    You can either move it to child module routing definitions or you can modify AppRouteGuard according to your needs.

    Thanks.