Class Principal
- Namespace
- Shift.Common
- Assembly
- Shift.Common.dll
public class Principal : IShiftPrincipal, IIdentity, IPrincipal, ISimplePrincipal
- Inheritance
-
Principal
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
Principal()
Properties
AuthenticationType
public string AuthenticationType { get; set; }
Property Value
- string
Authority
public AuthorityAccess Authority { get; set; }
Property Value
- AuthorityAccess
Claims
public IJwt Claims { get; set; }
Property Value
- IJwt
IPAddress
public string IPAddress { get; set; }
Property Value
- string
IsAdministrator
public bool IsAdministrator { get; }
Property Value
- bool
IsAuthenticated
public bool IsAuthenticated { get; set; }
Property Value
- bool
IsDeveloper
public bool IsDeveloper { get; }
Property Value
- bool
IsOperator
public bool IsOperator { get; }
Property Value
- bool
Name
public string Name { get; }
Property Value
- string
Organization
public Model Organization { get; set; }
Property Value
- Model
OrganizationId
public Guid? OrganizationId { get; }
Property Value
- Guid?
Partition
public Model Partition { get; set; }
Property Value
- Model
Person
public Model Person { get; set; }
Property Value
- Model
Proxy
public Proxy Proxy { get; set; }
Property Value
- Proxy
RoleIds
public Guid[] RoleIds { get; }
Property Value
- Guid[]
Roles
public List<Role> Roles { get; set; }
Property Value
- List<Role>
User
public Actor User { get; set; }
Property Value
- Actor
UserId
public Guid? UserId { get; }
Property Value
- Guid?
Methods
IsInRole(string)
public bool IsInRole(string role)
Parameters
role string
Returns
- bool