tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
IOAuthValidator.cs
Go to the documentation of this file.
1using System.Threading;
2using System.Threading.Tasks;
3
5
7{
11 public interface IOAuthValidator
12 {
17
22
28
36 ValueTask<(string? UserID, string AccessCode)?> ValidateResponseCode(string code, bool requireUserID, CancellationToken cancellationToken);
37 }
38}
Public information about a given OAuthProvider.
Validates OAuth responses for a given Provider.
OAuthGatewayStatus GatewayStatus
The OAuthGatewayStatus for the IOAuthValidator.
OAuthProvider Provider
The OAuthProvider this validator is for.
OAuthProviderInfo GetProviderInfo()
Gets the OAuthProvider of validator.
ValueTask<(string? UserID, string AccessCode)?> ValidateResponseCode(string code, bool requireUserID, CancellationToken cancellationToken)
Validate a given OAuth response code .
OAuthProvider
List of OAuth providers supported by TGS.
OAuthGatewayStatus
Status of the OAuth gateway for a provider.