Package io.trino.server.security.oauth2
Class OAuth2Service
java.lang.Object
io.trino.server.security.oauth2.OAuth2Service
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOAuth2Service(OAuth2Client client, OAuth2Config oauth2Config, OAuth2TokenHandler tokenHandler, TokenPairSerializer tokenPairSerializer, Optional<Duration> tokenExpiration, Optional<OAuth2WebUiInstalled> webUiOAuthEnabled) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsegetCallbackErrorHtml(String errorCode) getInternalFailureHtml(String errorMessage) jakarta.ws.rs.core.ResponsehandleOAuth2Error(String state, String error, String errorDescription, String errorUri) jakarta.ws.rs.core.ResponsestartOAuth2Challenge(URI callbackUri, Optional<String> handlerState)
-
Field Details
-
STATE
- See Also:
-
NONCE
- See Also:
-
OPENID_SCOPE
- See Also:
-
HANDLER_STATE_CLAIM
- See Also:
-
-
Constructor Details
-
OAuth2Service
@Inject public OAuth2Service(OAuth2Client client, OAuth2Config oauth2Config, OAuth2TokenHandler tokenHandler, TokenPairSerializer tokenPairSerializer, Optional<Duration> tokenExpiration, Optional<OAuth2WebUiInstalled> webUiOAuthEnabled) throws IOException - Throws:
IOException
-
-
Method Details
-
startOAuth2Challenge
-
handleOAuth2Error
-
finishOAuth2Challenge
-
getSuccessHtml
-
getCallbackErrorHtml
-
getInternalFailureHtml
-