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)
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
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
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)