Table of Contents

Class PermissionRequirement

Namespace
NuvTools.Security.Identity.Policy
Assembly
NuvTools.Security.Identity.dll

Represents an authorization requirement based on a specific permission.

public class PermissionRequirement : IAuthorizationRequirement
Inheritance
PermissionRequirement
Implements
Inherited Members

Remarks

This requirement is evaluated by the PermissionAuthorizationHandler to determine whether the current user possesses a claim that grants the specified permission.

Constructors

PermissionRequirement(string)

Represents an authorization requirement based on a specific permission.

public PermissionRequirement(string permission)

Parameters

permission string

Remarks

This requirement is evaluated by the PermissionAuthorizationHandler to determine whether the current user possesses a claim that grants the specified permission.

Properties

Permission

Gets the name or identifier of the permission required for authorization.

public string Permission { get; }

Property Value

string

Remarks

This value typically corresponds to the Value of a claim of type ClaimTypes.Permission that must be present on the authenticated user.