tgstation-server 5.12.7
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
23 Task<OAuthProviderInfo> GetProviderInfo(CancellationToken cancellationToken);
24
31 Task<string> ValidateResponseCode(string code, CancellationToken cancellationToken);
32 }
33}
Validates OAuth responses for a given Provider.
Task< string > ValidateResponseCode(string code, CancellationToken cancellationToken)
Validate a given OAuth response code .
OAuthProvider Provider
The OAuthProvider this validator is for.
Task< OAuthProviderInfo > GetProviderInfo(CancellationToken cancellationToken)
Gets the OAuthProvider of validator.
OAuthProvider
List of OAuth providers supported by TGS.