Package io.trino.server.security.oauth2
Class OAuth2Authenticator
- java.lang.Object
-
- io.trino.server.security.AbstractBearerAuthenticator
-
- io.trino.server.security.oauth2.OAuth2Authenticator
-
- All Implemented Interfaces:
Authenticator
public class OAuth2Authenticator extends AbstractBearerAuthenticator
-
-
Constructor Summary
Constructors Constructor Description OAuth2Authenticator(OAuth2Service service, OAuth2Config config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Optional<Principal>extractPrincipalFromToken(String token)protected AuthenticationExceptionneedAuthentication(javax.ws.rs.container.ContainerRequestContext request, String message)-
Methods inherited from class io.trino.server.security.AbstractBearerAuthenticator
authenticate, authenticate, extractToken
-
-
-
-
Constructor Detail
-
OAuth2Authenticator
@Inject public OAuth2Authenticator(OAuth2Service service, OAuth2Config config)
-
-
Method Detail
-
extractPrincipalFromToken
protected Optional<Principal> extractPrincipalFromToken(String token)
- Specified by:
extractPrincipalFromTokenin classAbstractBearerAuthenticator
-
needAuthentication
protected AuthenticationException needAuthentication(javax.ws.rs.container.ContainerRequestContext request, String message)
- Specified by:
needAuthenticationin classAbstractBearerAuthenticator
-
-