Class GrantRevocationScope
- Namespace
- Excalibur.A3.Authorization
- Assembly
- Excalibur.A3.Abstractions.dll
Explicit tenant or estate-wide scope for revoking a user's grants.
public sealed record GrantRevocationScope : IEquatable<GrantRevocationScope>
- Inheritance
-
GrantRevocationScope
- Implements
- Inherited Members
Constructors
GrantRevocationScope(string?, bool)
Initializes an explicit tenant or all-tenants scope.
public GrantRevocationScope(string? tenantId, bool isAllTenants = false)
Parameters
tenantIdstringExact tenant identifier, or null for an explicitly all-tenants scope.
isAllTenantsboolMust be explicitly true when no tenant is supplied.
Properties
AllTenants
Gets the explicit scope covering every tenant.
public static GrantRevocationScope AllTenants { get; }
Property Value
IsAllTenants
Gets whether all tenants were explicitly selected.
public bool IsAllTenants { get; }
Property Value
TenantId
Gets the tenant, or null for an explicitly estate-wide scope.
public string? TenantId { get; }
Property Value
Methods
ForTenant(string)
Creates a scope covering exactly one tenant.
public static GrantRevocationScope ForTenant(string tenantId)
Parameters
tenantIdstringThe exact tenant identifier.
Returns
- GrantRevocationScope
The tenant scope.