tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
GraphQL
Types
OAuth
BasicOAuthProviderInfo.cs
Go to the documentation of this file.
1
using
System;
2
3
using
Tgstation.Server.Api.Models
;
4
5
namespace
Tgstation.Server.Host.GraphQL.Types.OAuth
6
{
10
public
class
BasicOAuthProviderInfo
11
{
15
public
string
ClientID
{
get
; }
16
20
public
bool
?
GatewayOnly
{
get
; }
21
26
public
BasicOAuthProviderInfo
(
OAuthProviderInfo
providerInfo)
27
{
28
ArgumentNullException.ThrowIfNull(providerInfo);
29
30
ClientID
= providerInfo.ClientId ??
throw
new
InvalidOperationException(
"ClientID not set!"
);
31
GatewayOnly
= providerInfo.
GatewayOnly
;
32
}
33
}
34
}
Tgstation.Server.Api.Models.OAuthProviderInfo
Public information about a given OAuthProvider.
Definition
OAuthProviderInfo.cs:9
Tgstation.Server.Api.Models.OAuthProviderInfo.GatewayOnly
bool? GatewayOnly
If true the OAuth provider may only be used for gateway authentication. If false the OAuth provider m...
Definition
OAuthProviderInfo.cs:29
Tgstation.Server.Host.GraphQL.Types.OAuth.BasicOAuthProviderInfo
Basic OAuth provider info.
Definition
BasicOAuthProviderInfo.cs:11
Tgstation.Server.Host.GraphQL.Types.OAuth.BasicOAuthProviderInfo.GatewayOnly
bool? GatewayOnly
If true the OAuth provider can only be used for gateway authentication. If false the OAuth provider m...
Definition
BasicOAuthProviderInfo.cs:20
Tgstation.Server.Host.GraphQL.Types.OAuth.BasicOAuthProviderInfo.ClientID
string ClientID
The client ID.
Definition
BasicOAuthProviderInfo.cs:15
Tgstation.Server.Host.GraphQL.Types.OAuth.BasicOAuthProviderInfo.BasicOAuthProviderInfo
BasicOAuthProviderInfo(OAuthProviderInfo providerInfo)
Initializes a new instance of the BasicOAuthProviderInfo class.
Definition
BasicOAuthProviderInfo.cs:26
Tgstation.Server.Api.Models
Definition
ChatChannel.cs:6
Tgstation.Server.Host.GraphQL.Types.OAuth
Definition
BasicOAuthProviderInfo.cs:6
Generated by
1.9.8