Table of Contents

Class RevokeGrantCommand

Namespace
Excalibur.A3.Authorization.Grants
Assembly
Excalibur.A3.dll

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

[Activity("Revoke grant", "Revokes a user's permissions.")]
public sealed class RevokeGrantCommand : AuthorizeCommandBase<AuditableResult<bool>>, IAuthorizeCommand<AuditableResult<bool>>, ICommand<AuditableResult<bool>>, ICommand, IActivity, IAmCorrelatable, IAmMultiTenant, IDispatchAction<AuditableResult<bool>>, IRequireAuthorization, IDispatchAction, IDispatchMessage
Inheritance
RevokeGrantCommand
Implements
Inherited Members

Remarks

This command is used to revoke a user's specific grant, identified by its type and qualifier, within a particular tenant and correlation context.

Constructors

RevokeGrantCommand(string, string, string, Guid, string?)

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

public RevokeGrantCommand(string userId, string grantType, string qualifier, Guid correlationId, string? tenantId = null)

Parameters

userId string
grantType string
qualifier string
correlationId Guid
tenantId string

Remarks

This command is used to revoke a user's specific grant, identified by its type and qualifier, within a particular tenant and correlation context.

Properties

GrantType

Gets or sets the type of grant being revoked.

public string GrantType { get; set; }

Property Value

string

The type of grant.

Examples

Examples of grant types include "ActivityGroup" or "Activity".

Qualifier

Gets or sets the qualifier for the grant being revoked.

public string Qualifier { get; set; }

Property Value

string

The qualifier for the grant.

Remarks

The qualifier provides additional context or details about the specific grant type being revoked.

UserId

Gets or sets the ID of the user whose grant is being revoked.

public string UserId { get; set; }

Property Value

string

The ID of the user.