Table of Contents

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

tenantId string

Exact tenant identifier, or null for an explicitly all-tenants scope.

isAllTenants bool

Must be explicitly true when no tenant is supplied.

Properties

AllTenants

Gets the explicit scope covering every tenant.

public static GrantRevocationScope AllTenants { get; }

Property Value

GrantRevocationScope

IsAllTenants

Gets whether all tenants were explicitly selected.

public bool IsAllTenants { get; }

Property Value

bool

TenantId

Gets the tenant, or null for an explicitly estate-wide scope.

public string? TenantId { get; }

Property Value

string

Methods

ForTenant(string)

Creates a scope covering exactly one tenant.

public static GrantRevocationScope ForTenant(string tenantId)

Parameters

tenantId string

The exact tenant identifier.

Returns

GrantRevocationScope

The tenant scope.