Table of Contents

Namespace Excalibur.A3.Authorization.Grants

Classes

AddGrantCommand

Represents a command to add a grant to a user.

AddGrantCommandValidator

Validates the AddGrantCommand to ensure it contains valid data before processing.

Grant

Represents a user permission or access grant with a specific scope and expiration.

GrantData

Represents data for a grant as retrieved from the database.

GrantKey

Utility class for representing and managing unique keys associated with grants in a system. A grant key is composed of a userId and a GrantScope, where the GrantScope encapsulates the tenantId, grantType, and qualifier. This class ensures consistent construction, parsing, and serialization of grant keys.

GrantQuery

Query class for Grant aggregates.

GrantRepository

Represents a repository for managing Grant entities, providing CRUD operations and utility methods for handling grants.

GrantScope

Represents the scope of a grant, including tenant ID, grant type, and qualifier.

GrantType

Provides predefined constants for grant types.

RevokeAllGrantsCommand

Represents a command to revoke all grants assigned to a specific user.

RevokeAllGrantsCommandValidator

Validates the RevokeAllGrantsCommand to ensure all required properties are provided.

RevokeGrantCommand

Represents a command to revoke a specific grant from a user.

RevokeGrantCommandValidator

Validates the RevokeGrantCommand to ensure that all required fields are provided and valid.

Interfaces

IGrantRepository

Represents a repository for managing Grant entities.