API
ClaimsPrincipal.Identity
Reports the selected identity authentication state; does not itself verify credentials.
Formal Syntax & Structure
csharp syntaxcsharp
principal.Identity?.IsAuthenticatedWorking Example
Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.principal.Identity?.IsAuthenticated