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
accessorCurrentPrincipalAccessorThe Arc principal accessor.
runtimeIAuthorizationPolicyRuntimeThe active host's authorization runtime.
tenantIdsTenantIdAccessorThe cached tenant for this execution flow.
tenantResolverITenantIdResolverResolves the tenant under the selected identity.