tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
OAuthTokenRequest.cs
Go to the documentation of this file.
1using System;
2
4
6{
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}
Uri? RedirectUrl
The authentication server URL. Not used by all providers.
OAuthTokenRequest(OAuthConfiguration oAuthConfiguration, string code, string scope)
Initializes a new instance of the OAuthTokenRequest class.
string Code
The OAuth code received from the browser.