Class HttpContextIdentityAccessor
Accessor retuning the current identity registered with the HttpContext.
public class HttpContextIdentityAccessor : SysIdentityAccessor
- Inheritance
-
HttpContextIdentityAccessor
- Extension Methods
Constructors
HttpContextIdentityAccessor(IHttpContextAccessor, IOptions<IdentityOptions>)
Ctor from httpCtx.
public HttpContextIdentityAccessor(IHttpContextAccessor httpCtx, IOptions<IdentityOptions> optAcc)
Parameters
httpCtxIHttpContextAccessoroptAccIOptions<IdentityOptions>
Properties
AuthenticationType
public override string? AuthenticationType { get; }
Property Value
Id
public override int Id { get; }
Property Value
Name
public override string? Name { get; }
Property Value
Principal
public override ClaimsPrincipal Principal { get; }
Property Value
Roles
public override string[] Roles { get; }
Property Value
- string[]