0
venkata.gunturu created
Hi, I have 2 questions,
- I want to access a page without login. How we can stop this and access page without login? (Start page as a static web page instead login page)
- I want to use our custom login (Secure Auth) page instead ASPNET Zero login page when a user click on Login button. Once authenticated, need to redirect to a page based on role.
I am using MVC Core and jQuery latest version (v8.x)
1 Answer(s)
-
0
Hi @venkata.gunturu
- If you create a Controller without Authorize attirebute, users can access this page without authentication. By default, user is redirected to HomeController. You can either change the source code of HomeController or default route here https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/Startup/Startup.cs#L237
- You can check https://aspnetboilerplate.com/Pages/Documents/Zero/User-Management#external-authentication
Have an answer to this question?
Log in
and write your answer.