string SessionId
A string that uniquely identifies the login session.
AuthenticationContext()
Initializes a new instance of the AuthenticationContext class.
DateTimeOffset SessionExpiry
When the login session expires.
PermissionSet? permissionSet
Backing field for PermissionSet.
void Initialize(User user, DateTimeOffset sessionExpiry, string sessionId, InstancePermissionSet? instanceUser, ISystemIdentity? systemIdentity)
Initializes the AuthenticationContext.
static InvalidOperationException InvalidContext()
InvalidOperationException for accessing fields on an InValid AuthenticationContext.
ISystemIdentity? SystemIdentity
The ISystemIdentity of User if applicable.
DateTimeOffset? sessionExpiry
Backing field for SessionExpiry.
bool Valid
If the IAuthenticationContext is for a valid login.
PermissionSet PermissionSet
The User's effective PermissionSet.
ulong GetRight(RightsType rightsType)
Get the value of a given rightsType .The value of rightsType . Note that if InstancePermissionSet is ...
string? sessionId
Backing field for SessionId.
For creating and accessing authentication contexts.