Table of Contents

Class ClaimsRole

Namespace
The.Security
Assembly
Instagile.dll

An application-specific authorisation role.

public record ClaimsRole : IEquatable<ClaimsRole>
Inheritance
ClaimsRole
Implements
Derived
Inherited Members

Constructors

ClaimsRole(string, string, string, Action<PermissionSetBuilder>)

public ClaimsRole(string name, string displayName, string description, Action<PermissionSetBuilder> buildPermissions)

Parameters

name string

The name of the role, which can be checked with HasRole(string).

displayName string

The user-visible display name, presented on security screens

description string

The user-visible role description, presented on security screens

buildPermissions Action<PermissionSetBuilder>

Specify ORM-level access granted by the role.

ClaimsRole(string, string, string, PermissionSet)

public ClaimsRole(string name, string displayName, string description, PermissionSet permissions)

Parameters

name string

The name of the role, which can be checked with HasRole(string).

displayName string

The user-visible display name, presented on security screens

description string

The user-visible role description, presented on security screens

permissions PermissionSet

The ORM-level access granted by the role.

Properties

BuildPermissions

The ORM-level access granted by the role.

public Func<EntityMetadataDictionary, PermissionSet> BuildPermissions { get; init; }

Property Value

Func<EntityMetadataDictionary, PermissionSet>

Description

The user-visible role description, presented on security screens

public string Description { get; init; }

Property Value

string

DisplayName

The user-visible display name, presented on security screens

public string DisplayName { get; init; }

Property Value

string

Name

The name of the role, which can be checked with HasRole(string).

public string Name { get; init; }

Property Value

string