2using System.Security.Claims;
4using Microsoft.AspNetCore.Http;
13 ??
throw new InvalidOperationException(
"HTTP context was not present!");
ClaimsPrincipal User
Get the current ClaimsPrincipal.
readonly IHttpContextAccessor httpContextAccessor
The IHttpContextAccessor for the AuthorizationService.
ClaimsPrincipalAccessor(IHttpContextAccessor httpContextAccessor)
Initializes a new instance of the ClaimsPrincipalAccessor class.
Interface for accessing the current request's ClaimsPrincipal.
ClaimsPrincipal User
Get the current ClaimsPrincipal.