Interface ICurrentPrincipalAccessor

Namespace
Cratis.Arc.Authorization
Assembly
Cratis.Arc.Core.dll

Defines a system for accessing the principal that is currently executing, independent of transport.

public interface ICurrentPrincipalAccessor
Extension Methods

Properties

Current

Gets the ClaimsPrincipal that is currently executing — the HTTP request principal while a request is in progress, otherwise the principal established by a server-side execution scope, or null when neither is present.

ClaimsPrincipal? Current { get; }

Property Value

ClaimsPrincipal