Authorization in asp.net core is simply AuthorizeAttribute
[Authorize]
public class SomeController : Controller
{
public IActionResult Get()
{
}
public IActionResult Post()
{
}
}
This will only allow a logged in user to access these actions.
or use the followi...