tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
ILoginAuthority.cs
Go to the documentation of this file.
1using System.Threading;
2using System.Threading.Tasks;
3
6
8{
12 public interface ILoginAuthority : IAuthority
13 {
19 ValueTask<AuthorityResponse<LoginResult>> AttemptLogin(CancellationToken cancellationToken);
20
26 ValueTask<AuthorityResponse<OAuthGatewayLoginResult>> AttemptOAuthGatewayLogin(CancellationToken cancellationToken);
27 }
28}
Business logic for interating with the server.
Definition IAuthority.cs:9
IAuthority for authenticating with the server.
ValueTask< AuthorityResponse< LoginResult > > AttemptLogin(CancellationToken cancellationToken)
Attempt to login to the server with the current Basic or OAuth credentials.
ValueTask< AuthorityResponse< OAuthGatewayLoginResult > > AttemptOAuthGatewayLogin(CancellationToken cancellationToken)
Attempt to login to an OAuth service with the current OAuth credentials.