Table of Contents

Struct ActivityGroupGrantEntry

Namespace
Excalibur.A3.Authorization
Assembly
Excalibur.A3.Abstractions.dll

One activity-group grant: a single row of an activity-group grant snapshot.

public readonly record struct ActivityGroupGrantEntry : IEquatable<ActivityGroupGrantEntry>
Implements
Inherited Members

Remarks

An entry carries no validation of its own, because default can always construct one. It is validated when it is placed into an ActivityGroupGrantSnapshot, which is the only form a store accepts for a grant replace.

Constructors

ActivityGroupGrantEntry(string, string, string, string, string, DateTimeOffset?, string)

One activity-group grant: a single row of an activity-group grant snapshot.

public ActivityGroupGrantEntry(string UserId, string FullName, string TenantId, string GrantType, string Qualifier, DateTimeOffset? ExpiresOn, string GrantedBy)

Parameters

UserId string

The user the grant is held by, as a bare value.

FullName string

The user's display name. May be empty when the authority sends none.

TenantId string

The tenant the grant applies within, as a bare value.

GrantType string

The grant type this row carries.

Qualifier string

What is granted — for an activity-group grant, the group's name.

ExpiresOn DateTimeOffset?

When the grant stops conferring anything, or null to never expire.

GrantedBy string

The actor the grant is recorded against.

Remarks

An entry carries no validation of its own, because default can always construct one. It is validated when it is placed into an ActivityGroupGrantSnapshot, which is the only form a store accepts for a grant replace.

Properties

ExpiresOn

When the grant stops conferring anything, or null to never expire.

public DateTimeOffset? ExpiresOn { get; init; }

Property Value

DateTimeOffset?

FullName

The user's display name. May be empty when the authority sends none.

public string FullName { get; init; }

Property Value

string

GrantType

The grant type this row carries.

public string GrantType { get; init; }

Property Value

string

GrantedBy

The actor the grant is recorded against.

public string GrantedBy { get; init; }

Property Value

string

Qualifier

What is granted — for an activity-group grant, the group's name.

public string Qualifier { get; init; }

Property Value

string

TenantId

The tenant the grant applies within, as a bare value.

public string TenantId { get; init; }

Property Value

string

UserId

The user the grant is held by, as a bare value.

public string UserId { get; init; }

Property Value

string