Class CasewhereWorkerPrincipal
Namespace: Casewhere.Common.Authentication
Assembly: Casewhere.Common.dll
public class CasewhereWorkerPrincipal : IPrincipal
Inheritance
object ← CasewhereWorkerPrincipal
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<CasewhereWorkerPrincipal>(CasewhereWorkerPrincipal)
Constructors
CasewhereWorkerPrincipal(IIdentity)
public CasewhereWorkerPrincipal(IIdentity identity)
Parameters
identity
IIdentity
Properties
AuthType
public string AuthType { get; set; }
Property Value
Claims
public IList<KeyValuePair<string, string>> Claims { get; set; }
Property Value
IList<KeyValuePair<string, string>>
DisplayName
public string DisplayName { get; set; }
Property Value
Groups
public IList<string> Groups { get; set; }
Property Value
Identity
public IIdentity Identity { get; }
Property Value
Organizations
public IList<UserOrg> Organizations { get; set; }
Property Value
UserName
public string UserName { get; set; }
Property Value
Methods
IsInRole(string)
public bool IsInRole(string role)
Parameters
role
string