Class SoClaimsPrincipal
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Implements
Inherited Members
Namespace: SuperOffice.Security.Principal
Assembly: SoCore.dll
Syntax
public class SoClaimsPrincipal : ClaimsPrincipal, IPrincipal
Constructors
SoClaimsPrincipal(IUserInfoService, IPrincipalStateAccessor, NSIdentityClaimValues)
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public SoClaimsPrincipal(IUserInfoService userInfo, IPrincipalStateAccessor principalState, NSIdentityClaimValues nsIdentityClaimValues)
Parameters
| Type | Name | Description |
|---|---|---|
| IUserInfoService | userInfo | |
| IPrincipalStateAccessor | principalState | |
| NSIdentityClaimValues | nsIdentityClaimValues |
SoClaimsPrincipal(IUserInfoService, IPrincipalStateAccessor, ClaimsIdentity)
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public SoClaimsPrincipal(IUserInfoService userInfo, IPrincipalStateAccessor principalState, ClaimsIdentity claimsIdentity)
Parameters
| Type | Name | Description |
|---|---|---|
| IUserInfoService | userInfo | |
| IPrincipalStateAccessor | principalState | |
| ClaimsIdentity | claimsIdentity |
Properties
Associate
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public string Associate { get; }
Property Value
| Type | Description |
|---|---|
| string |
AssociateId
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public int AssociateId { get; }
Property Value
| Type | Description |
|---|---|
| int |
ClaimsIdentity
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public ClaimsIdentity ClaimsIdentity { get; }
Property Value
| Type | Description |
|---|---|
| ClaimsIdentity |
ContactId
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public int ContactId { get; }
Property Value
| Type | Description |
|---|---|
| int |
ContactOwnerId
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public int ContactOwnerId { get; }
Property Value
| Type | Description |
|---|---|
| int |
ContextIdentifier
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public string ContextIdentifier { get; }
Property Value
| Type | Description |
|---|---|
| string |
CountryId
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public int CountryId { get; }
Property Value
| Type | Description |
|---|---|
| int |
EMailAddress
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public string EMailAddress { get; }
Property Value
| Type | Description |
|---|---|
| string |
EjAccessLevel
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public EjAccess EjAccessLevel { get; }
Property Value
| Type | Description |
|---|---|
| EjAccess |
EjUserId
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public int EjUserId { get; }
Property Value
| Type | Description |
|---|---|
| int |
EjUserStatus
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public EjUserStatus EjUserStatus { get; }
Property Value
| Type | Description |
|---|---|
| EjUserStatus |
FullName
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public string FullName { get; }
Property Value
| Type | Description |
|---|---|
| string |
GroupId
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public int GroupId { get; }
Property Value
| Type | Description |
|---|---|
| int |
HomeCountryId
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public int HomeCountryId { get; }
Property Value
| Type | Description |
|---|---|
| int |
Identity
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public override IIdentity Identity { get; }
Property Value
| Type | Description |
|---|---|
| IIdentity |
Overrides
IsPerson
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public bool IsPerson { get; }
Property Value
| Type | Description |
|---|---|
| bool |
PersonId
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public int PersonId { get; }
Property Value
| Type | Description |
|---|---|
| int |
RoleDescription
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public string RoleDescription { get; }
Property Value
| Type | Description |
|---|---|
| string |
RoleId
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public int RoleId { get; }
Property Value
| Type | Description |
|---|---|
| int |
RoleName
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public string RoleName { get; }
Property Value
| Type | Description |
|---|---|
| string |
RoleType
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public RoleType RoleType { get; }
Property Value
| Type | Description |
|---|---|
| RoleType |
SecondaryGroups
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public int[] SecondaryGroups { get; }
Property Value
| Type | Description |
|---|---|
| int[] |
UserName
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public string UserName { get; }
Property Value
| Type | Description |
|---|---|
| string |
UserType
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public UserType UserType { get; }
Property Value
| Type | Description |
|---|---|
| UserType |
Methods
GetLicenses()
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public HashSet<string> GetLicenses()
Returns
| Type | Description |
|---|---|
| HashSet<string> |
HasLicense(string)
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public bool HasLicense(string licenseName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | licenseName |
Returns
| Type | Description |
|---|---|
| bool |
HasLicense(string, string)
Wrapper class around ClaimsPrincipal in order to solve certain concerns, performance, etc.
Declaration
public bool HasLicense(string moduleOwner, string moduleName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | moduleOwner | |
| string | moduleName |
Returns
| Type | Description |
|---|---|
| bool |
ResetIfExpired()
Resets the cached data if the principal state has expired.
Declaration
public void ResetIfExpired()