Enum TenantIsolationMode
- Namespace
- Stratara.Mediator.Multitenancy
- Assembly
- Stratara.Mediator.dll
Enforcement mode for the tenant-isolation pipeline behavior.
public enum TenantIsolationMode
- Extension Methods
Fields
Default = 0Enforce only that a tenant-scoped request's
TenantIdmatches the current session's data-owner tenant. A privileged cross-tenant operation — where the session's actor tenant differs from its data-owner tenant — is allowed, because the calling endpoint is expected to have promoted the data-owner tenant to the target before dispatch.Strict = 1In addition to the Default subject check, require that any cross-tenant operation (session actor tenant ≠ data-owner tenant) be explicitly permitted by the registered
ICrossTenantAuthorizer. With the shipped deny-all default, strict mode rejects every cross-tenant operation until a consumer registers an authorizer that grants it.