tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
IAuthenticationContext.cs
Go to the documentation of this file.
1using System;
2
5
7{
11 public interface IAuthenticationContext
12 {
16 bool Valid { get; }
17
21 string SessionId { get; }
22
27
31 User User { get; }
32
37
42
49
54 }
55}
For creating and accessing authentication contexts.
ISystemIdentity? SystemIdentity
The ISystemIdentity of User if applicable.
bool Valid
If the IAuthenticationContext is for a valid login.
string SessionId
A string that uniquely identifies the login session.
DateTimeOffset SessionExpiry
When the login session expires.
ulong GetRight(RightsType rightsType)
Get the value of a given rightsType .
Represents a user on the current global::System.Runtime.InteropServices.OSPlatform.
@ List
User may list files if the Models.Instance allows it.
RightsType
The type of rights a model uses.
Definition RightsType.cs:7