Below code is my Action Method in Asp.Net Core 3.
[HttpGet]
[Authorize]
public async Task<IActionResult> Info()
{
if (!User.Identity.IsAuthenticated) /// Is this need?
{
return BadRequest("Un Authorized Access");
}
}
I used Authorize
attribute on method.Do I need to check Authentiaciton of user again with User.Identity.IsAuthenticated
?