Class UserPrivileges
the priviledges of the user which will be embedded in the jwt or cookie
Inherited Members
Namespace: FastEndpoints
Assembly: FastEndpoints.dll
Syntax
public sealed class UserPrivileges
Properties
Claims
claims of the user
Declaration
public List<Claim> Claims { get; }
Property Value
Type | Description |
---|---|
List<Claim> |
this[string]
shortcut for adding a new Claim to the claim list for the given claim type and value
Declaration
public string this[string claimType] { set; }
Parameters
Type | Name | Description |
---|---|---|
string | claimType | the claim type to add |
Property Value
Type | Description |
---|---|
string |
Permissions
allowed permissions for the user
Declaration
public List<string> Permissions { get; }
Property Value
Type | Description |
---|---|
List<string> |
Roles
roles of the user
Declaration
public List<string> Roles { get; }
Property Value
Type | Description |
---|---|
List<string> |