Module org.elasticsearch.xcore
Interface CustomAuthenticator
- All Known Subinterfaces:
CustomTokenAuthenticator
public interface CustomAuthenticator
An extension point to provide a custom authenticator implementation. For example, a custom API key or a custom OAuth2
token implementation. The implementation is wrapped by a core `Authenticator` class and included in the authenticator chain
_before_ the respective "standard" authenticator(s).
-
Method Summary
Modifier and TypeMethodDescriptionvoidauthenticate(AuthenticationToken token, ActionListener<AuthenticationResult<Authentication>> listener) extractToken(ThreadContext context) booleansupports(AuthenticationToken token)
-
Method Details
-
supports
-
extractToken
-
authenticate
void authenticate(@Nullable AuthenticationToken token, ActionListener<AuthenticationResult<Authentication>> listener)
-