3using Microsoft.Extensions.Logging;
20 protected override Uri
TokenUrl =>
new ($
"{BaseProtocolPath}/token");
38 ILogger<KeycloakOAuthValidator> logger,
OAuth configuration options.
IOAuthValidator for generic OAuth2 endpoints.
OAuthConfiguration OAuthConfiguration
The OAuthConfiguration for the GenericOAuthValidator.
readonly IAbstractHttpClientFactory httpClientFactory
The IHttpClientFactory for the GenericOAuthValidator.
OAuth validator for Keycloak.
override string DecodeUserInformationPayload(dynamic responseJson)
Decode the user information payload responseJson . The user ID on success, null otherwise.
override string DecodeTokenPayload(dynamic responseJson)
Decode the token payload responseJson . The OAuth2 bearer access token on success,...
override Uri UserInformationUrl
KeycloakOAuthValidator(IAbstractHttpClientFactory httpClientFactory, ILogger< KeycloakOAuthValidator > logger, OAuthConfiguration oAuthConfiguration)
Initializes a new instance of the KeycloakOAuthValidator class.
override OAuthTokenRequest CreateTokenRequest(string code)
Create the OAuthTokenRequest for a given code . The OAuthTokenRequest to send to TokenUrl.
string BaseProtocolPath
Base path to the server's OAuth endpoint.
override OAuthProvider Provider
The OAuthProvider this validator is for.
Generic OAuth token request.
OAuthProvider
List of OAuth providers supported by TGS.