There is a tag
[Authorize]
public class IndexModel : PageModel
{
}
The [Authorize] I can add to the page class then I can not view the page if it is not authenticated.
How to add authentication ? that I can view the page?
I do not want to use Identity server.
and do not want to use ASP.NET Core Identity since it will generate tables .
I just want to verify the username and password and write authentication information to view the page.
thank you