tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
ISystemIdentityFactory.cs
Go to the documentation of this file.
1using System.Threading;
2using System.Threading.Tasks;
3
5
7{
11 public interface ISystemIdentityFactory
12 {
18
25 Task<ISystemIdentity?> CreateSystemIdentity(User user, CancellationToken cancellationToken);
26
34 Task<ISystemIdentity?> CreateSystemIdentity(string username, string password, CancellationToken cancellationToken);
35 }
36}
Task< ISystemIdentity?> CreateSystemIdentity(string username, string password, CancellationToken cancellationToken)
Create a ISystemIdentity for a given username and password.
Task< ISystemIdentity?> CreateSystemIdentity(User user, CancellationToken cancellationToken)
Create a ISystemIdentity for a given user .
ISystemIdentity GetCurrent()
Retrieves a ISystemIdentity representing the user executing tgstation-server.
Represents a user on the current global::System.Runtime.InteropServices.OSPlatform.