Table of Contents

Class CasewhereWorkerPrincipal

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

public class CasewhereWorkerPrincipal : IPrincipal

Inheritance

objectCasewhereWorkerPrincipal

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<CasewhereWorkerPrincipal>(CasewhereWorkerPrincipal)

Constructors

CasewhereWorkerPrincipal(IIdentity)

public CasewhereWorkerPrincipal(IIdentity identity)

Parameters

identity IIdentity

Properties

AuthType

public string AuthType { get; set; }

Property Value

string

Claims

public IList<KeyValuePair<string, string>> Claims { get; set; }

Property Value

IList<KeyValuePair<string, string>>

DisplayName

public string DisplayName { get; set; }

Property Value

string

Groups

public IList<string> Groups { get; set; }

Property Value

IList<string>

Identity

public IIdentity Identity { get; }

Property Value

IIdentity

Organizations

public IList<UserOrg> Organizations { get; set; }

Property Value

IList<UserOrg>

UserName

public string UserName { get; set; }

Property Value

string

Methods

IsInRole(string)

public bool IsInRole(string role)

Parameters

role string

Returns

bool