Class ClaimsRole
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
namestringThe name of the role, which can be checked with HasRole(string).
displayNamestringThe user-visible display name, presented on security screens
descriptionstringThe user-visible role description, presented on security screens
buildPermissionsAction<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
namestringThe name of the role, which can be checked with HasRole(string).
displayNamestringThe user-visible display name, presented on security screens
descriptionstringThe user-visible role description, presented on security screens
permissionsPermissionSetThe 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
Description
The user-visible role description, presented on security screens
public string Description { get; init; }
Property Value
DisplayName
The user-visible display name, presented on security screens
public string DisplayName { get; init; }
Property Value
Name
The name of the role, which can be checked with HasRole(string).
public string Name { get; init; }