Class AuthorizationPrincipalScope

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

Keeps the authenticated scheme identity and tenant visible throughout authorized command or query execution.

public class AuthorizationPrincipalScope
Inheritance
AuthorizationPrincipalScope
Inherited Members
Extension Methods

Constructors

AuthorizationPrincipalScope(CurrentPrincipalAccessor, IAuthorizationPolicyRuntime, TenantIdAccessor, ITenantIdResolver)

Keeps the authenticated scheme identity and tenant visible throughout authorized command or query execution.

public AuthorizationPrincipalScope(CurrentPrincipalAccessor accessor, IAuthorizationPolicyRuntime runtime, TenantIdAccessor tenantIds, ITenantIdResolver tenantResolver)

Parameters

accessor CurrentPrincipalAccessor

The Arc principal accessor.

runtime IAuthorizationPolicyRuntime

The active host's authorization runtime.

tenantIds TenantIdAccessor

The cached tenant for this execution flow.

tenantResolver ITenantIdResolver

Resolves the tenant under the selected identity.