@groovy.util.logging.Slf4j @groovy.transform.CompileStatic class RestAuthenticationFilter extends GenericFilterBean
This filter starts the initial authentication flow. It uses the configured AuthenticationManager bean, allowing to use any authentication provider defined by other plugins or by the application. If the authentication manager authenticates the request, a token is generated using a TokenGenerator and stored via TokenStorageService. Finally, a AuthenticationSuccessHandler is used to render the REST response to the client. If there is an authentication failure, the configured AuthenticationFailureHandler will render the response.
| Type | Name and description |
|---|---|
AuthenticationDetailsSource<HttpServletRequest, ?> |
authenticationDetailsSource |
RestAuthenticationEventPublisher |
authenticationEventPublisher |
AuthenticationFailureHandler |
authenticationFailureHandler |
AuthenticationManager |
authenticationManager |
AuthenticationSuccessHandler |
authenticationSuccessHandler |
CredentialsExtractor |
credentialsExtractor |
java.lang.String |
endpointUrl |
SpringSecurityRestFilterRequestMatcher |
requestMatcher |
TokenGenerator |
tokenGenerator |
TokenStorageService |
tokenStorageService |
| Constructor and description |
|---|
RestAuthenticationFilter() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
doFilter(ServletRequest request, ServletResponse response, FilterChain chain) |