tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
Security
OAuth
OAuthTokenRequest.cs
Go to the documentation of this file.
1
using
System;
2
3
using
Tgstation.Server.Host.Configuration
;
4
5
namespace
Tgstation.Server.Host.Security.OAuth
6
{
10
sealed
class
OAuthTokenRequest
:
OAuthConfigurationBase
11
{
15
public
string
Code
{
get
; }
16
20
public
string
Scope
{
get
; }
21
25
public
Uri?
RedirectUri
{
get
; }
26
30
public
string
GrantType
{
get
; }
31
38
public
OAuthTokenRequest
(
OAuthConfiguration
oAuthConfiguration,
string
code,
string
scope)
39
: base(oAuthConfiguration)
40
{
41
Code
= code ??
throw
new
ArgumentNullException(nameof(code));
42
Scope
= scope ??
throw
new
ArgumentNullException(nameof(scope));
43
44
RedirectUri
= oAuthConfiguration.
RedirectUrl
;
45
GrantType
=
"authorization_code"
;
46
}
47
}
48
}
Tgstation.Server.Host.Configuration.OAuthConfigurationBase
Base OAuth options.
Definition
OAuthConfigurationBase.cs:9
Tgstation.Server.Host.Configuration.OAuthConfiguration
OAuth configuration options.
Definition
OAuthConfiguration.cs:9
Tgstation.Server.Host.Configuration.OAuthConfiguration.RedirectUrl
Uri? RedirectUrl
The authentication server URL. Not used by all providers.
Definition
OAuthConfiguration.cs:18
Tgstation.Server.Host.Security.OAuth.OAuthTokenRequest
Generic OAuth token request.
Definition
OAuthTokenRequest.cs:11
Tgstation.Server.Host.Security.OAuth.OAuthTokenRequest.OAuthTokenRequest
OAuthTokenRequest(OAuthConfiguration oAuthConfiguration, string code, string scope)
Initializes a new instance of the OAuthTokenRequest class.
Definition
OAuthTokenRequest.cs:38
Tgstation.Server.Host.Security.OAuth.OAuthTokenRequest.Code
string Code
The OAuth code received from the browser.
Definition
OAuthTokenRequest.cs:15
Tgstation.Server.Host.Security.OAuth.OAuthTokenRequest.GrantType
string GrantType
The OAuth grant type.
Definition
OAuthTokenRequest.cs:30
Tgstation.Server.Host.Security.OAuth.OAuthTokenRequest.RedirectUri
Uri? RedirectUri
The OAuth redirect URI.
Definition
OAuthTokenRequest.cs:25
Tgstation.Server.Host.Security.OAuth.OAuthTokenRequest.Scope
string Scope
The scopes being requested.
Definition
OAuthTokenRequest.cs:20
Tgstation.Server.Host.Configuration
Definition
ControlPanelConfiguration.cs:4
Tgstation.Server.Host.Security.OAuth
Definition
DiscordOAuthValidator.cs:10
Generated by
1.9.8