3using Microsoft.Extensions.Logging;
20 protected override Uri
TokenUrl =>
new(
"https://discord.com/api/oauth2/token");
33 ILogger<DiscordOAuthValidator> logger,
OAuth configuration options.
OAuth validator for Discord.
override OAuthProvider Provider
The OAuthProvider this validator is for.
override string DecodeTokenPayload(dynamic responseJson)
override string DecodeUserInformationPayload(dynamic responseJson)
DiscordOAuthValidator(IAbstractHttpClientFactory httpClientFactory, ILogger< DiscordOAuthValidator > logger, OAuthConfiguration oAuthConfiguration)
Initializes a new instance of the DiscordOAuthValidator class.
override Uri UserInformationUrl
override OAuthTokenRequest CreateTokenRequest(string code)
IOAuthValidator for generic OAuth2 endpoints.
OAuthConfiguration OAuthConfiguration
The OAuthConfiguration for the GenericOAuthValidator.
readonly IAbstractHttpClientFactory httpClientFactory
The IHttpClientFactory for the GenericOAuthValidator.
Generic OAuth token request.
OAuthProvider
List of OAuth providers supported by TGS.