Table of Contents

Class CasewherePrincipal

Namespace: Casewhere.Common.Authentication
Assembly: Casewhere.Common.dll

public class CasewherePrincipal : IPrincipal

Inheritance

objectCasewherePrincipal

Implements

IPrincipal

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

string

Identity

public IIdentity Identity { get; }

Property Value

IIdentity

Roles

public IList<CasewhereRole> Roles { get; set; }

Property Value

IList<CasewhereRole>

UserName

public string UserName { get; set; }

Property Value

string

Methods

IsAllowedTo(string)

public bool IsAllowedTo(string accessRule)

Parameters

accessRule string

Returns

bool

IsInRole(string)

public bool IsInRole(string role)

Parameters

role string

Returns

bool