3using Microsoft.Extensions.Logging;
20 protected override Uri
TokenUrl =>
new(
"https://tgstation13.org/phpBB/app.php/tgapi/oauth/token");
23 protected override Uri
UserInformationUrl =>
new(
"https://tgstation13.org/phpBB/app.php/tgapi/user/me");
33 ILogger<TGForumsOAuthValidator> logger,
OAuth configuration options.
IOAuthValidator for generic OAuth2 endpoints.
OAuthConfiguration OAuthConfiguration
The OAuthConfiguration for the GenericOAuthValidator.
readonly IAbstractHttpClientFactory httpClientFactory
The IHttpClientFactory for the GenericOAuthValidator.
Generic OAuth token request.
IOAuthValidator for /tg/ forums.
override string DecodeUserInformationPayload(dynamic responseJson)
override string DecodeTokenPayload(dynamic responseJson)
TGForumsOAuthValidator(IAbstractHttpClientFactory httpClientFactory, ILogger< TGForumsOAuthValidator > logger, OAuthConfiguration oAuthConfiguration)
Initializes a new instance of the TGForumsOAuthValidator class.
override OAuthProvider Provider
The OAuthProvider this validator is for.
override OAuthTokenRequest CreateTokenRequest(string code)
override Uri UserInformationUrl
OAuthProvider
List of OAuth providers supported by TGS.