What is authentication in ASP.NET Core Web API?
Authentication establishes the identity of the caller. ASP.NET Core authentication handlers inspect credentials such as bearer tokens or cookies and, when valid, create a ClaimsPrincipal representing the authenticated user.