Class CasewherePrincipal
Namespace: Casewhere.Common.Authentication
Assembly: Casewhere.Common.dll
public class CasewherePrincipal : IPrincipal
Inheritance
Implements
Inherited Members
object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()
Extension Methods
ObjectExtension.ConvertToBsonValue(object), EnumExtensions.DeepClone<CasewherePrincipal>(CasewherePrincipal)
Constructors
CasewherePrincipal(IIdentity)
public CasewherePrincipal(IIdentity identity)
Parameters
identity
IIdentity
Properties
DisplayName
public string DisplayName { get; set; }
Property Value
Identity
public IIdentity Identity { get; }
Property Value
Roles
public IList<CasewhereRole> Roles { get; set; }
Property Value
UserName
public string UserName { get; set; }
Property Value
Methods
IsAllowedTo(string)
public bool IsAllowedTo(string accessRule)
Parameters
accessRule
string
Returns
IsInRole(string)
public bool IsInRole(string role)
Parameters
role
string