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
activityNamestringThe name of the activity being authorized.
resourceTypesstring[]The types of resources that can be accessed.
resourceIdstringThe 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
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.