Package io.trino.server.security.oauth2
Class ScribeJavaOAuth2Client
java.lang.Object
io.trino.server.security.oauth2.ScribeJavaOAuth2Client
- All Implemented Interfaces:
OAuth2Client
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.server.security.oauth2.OAuth2Client
OAuth2Client.OAuth2Response -
Constructor Summary
ConstructorsConstructorDescriptionScribeJavaOAuth2Client(OAuth2Config config, io.airlift.http.client.HttpClient httpClient) -
Method Summary
Modifier and TypeMethodDescriptiongetAuthorizationUri(String state, URI callbackUri, Optional<String> nonceHash) getOAuth2Response(String code, URI callbackUri)
-
Constructor Details
-
ScribeJavaOAuth2Client
@Inject public ScribeJavaOAuth2Client(OAuth2Config config, io.airlift.http.client.HttpClient httpClient)
-
-
Method Details
-
getAuthorizationUri
- Specified by:
getAuthorizationUriin interfaceOAuth2Client
-
getOAuth2Response
public OAuth2Client.OAuth2Response getOAuth2Response(String code, URI callbackUri) throws ChallengeFailedException - Specified by:
getOAuth2Responsein interfaceOAuth2Client- Throws:
ChallengeFailedException
-