Table of Contents

Class GrantsAuthorizationRequirement

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

Authorization requirement that validates user permissions based on grants for specific activities and resources.

public sealed class GrantsAuthorizationRequirement : IAuthorizationRequirement
Inheritance
GrantsAuthorizationRequirement
Implements
Inherited Members

Constructors

GrantsAuthorizationRequirement(string, string[], string?)

Authorization requirement that validates user permissions based on grants for specific activities and resources.

public GrantsAuthorizationRequirement(string activityName, string[] resourceTypes, string? resourceId = null)

Parameters

activityName string

The name of the activity being authorized.

resourceTypes string[]

The types of resources that can be accessed.

resourceId string

The optional specific resource identifier being accessed.

Properties

ActivityName

Gets the name of the activity being authorized.

public string ActivityName { get; }

Property Value

string

The name of the activity being authorized.

ResourceId

Gets the optional specific resource identifier being accessed.

public string? ResourceId { get; }

Property Value

string

The specific resource identifier, or null if not specified.

ResourceTypes

Gets the types of resources that can be accessed with this authorization.

public string[] ResourceTypes { get; }

Property Value

string[]

The array of resource types that can be accessed with this authorization.