Package io.trino.server.security.oauth2
Class NimbusOAuth2Client
java.lang.Object
io.trino.server.security.oauth2.NimbusOAuth2Client
- All Implemented Interfaces:
OAuth2Client
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.server.security.oauth2.OAuth2Client
OAuth2Client.Request, OAuth2Client.Response -
Constructor Summary
ConstructorsConstructorDescriptionNimbusOAuth2Client(OAuth2Config oauthConfig, OAuth2ServerConfigProvider serverConfigurationProvider, NimbusHttpClient httpClient) -
Method Summary
Modifier and TypeMethodDescriptioncreateAuthorizationRequest(String state, URI callbackUri) getLogoutEndpoint(Optional<String> idToken, URI callbackUrl) getOAuth2Response(String code, URI callbackUri, Optional<String> nonce) voidload()refreshTokens(String refreshToken)
-
Constructor Details
-
NimbusOAuth2Client
@Inject public NimbusOAuth2Client(OAuth2Config oauthConfig, OAuth2ServerConfigProvider serverConfigurationProvider, NimbusHttpClient httpClient)
-
-
Method Details
-
load
public void load()- Specified by:
loadin interfaceOAuth2Client
-
createAuthorizationRequest
- Specified by:
createAuthorizationRequestin interfaceOAuth2Client
-
getOAuth2Response
public OAuth2Client.Response getOAuth2Response(String code, URI callbackUri, Optional<String> nonce) throws ChallengeFailedException - Specified by:
getOAuth2Responsein interfaceOAuth2Client- Throws:
ChallengeFailedException
-
getClaims
- Specified by:
getClaimsin interfaceOAuth2Client
-
refreshTokens
- Specified by:
refreshTokensin interfaceOAuth2Client- Throws:
ChallengeFailedException
-
getLogoutEndpoint
- Specified by:
getLogoutEndpointin interfaceOAuth2Client
-