tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
OAuthConfigurationBase.cs
Go to the documentation of this file.
1using System;
2
4{
8 public abstract class OAuthConfigurationBase
9 {
13 public string? ClientId { get; set; }
14
18 public string? ClientSecret { get; set; }
19
23 public OAuthGatewayStatus? Gateway { get; set; }
24
29 {
30 }
31
37 {
38 ArgumentNullException.ThrowIfNull(oAuthConfiguration);
39 ClientId = oAuthConfiguration.ClientId;
40 ClientSecret = oAuthConfiguration.ClientSecret;
41 Gateway = oAuthConfiguration.Gateway;
42 }
43 }
44}
OAuthConfigurationBase()
Initializes a new instance of the OAuthConfigurationBase class.
OAuthGatewayStatus? Gateway
If the OAuth setup is only to be used for passing the user's OAuth token to clients.
OAuthConfigurationBase(OAuthConfigurationBase oAuthConfiguration)
Initializes a new instance of the OAuthConfigurationBase class.
OAuthGatewayStatus
Status of the OAuth gateway for a provider.