@groovy.transform.CompileStatic class GrailsUsernamePasswordAuthenticationFilter extends UsernamePasswordAuthenticationFilter
Extends the default UsernamePasswordAuthenticationFilter to store the last attempted login username in the session under the 'SPRING_SECURITY_LAST_USERNAME' key if storeLastUsername is true.
| Type | Name and description |
|---|---|
java.lang.Boolean |
storeLastUsernameWhether to store the last attempted username in the session. |
| Constructor and description |
|---|
GrailsUsernamePasswordAuthenticationFilter() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
afterPropertiesSet() |
|
Authentication |
attemptAuthentication(HttpServletRequest request, HttpServletResponse response) |
Whether to store the last attempted username in the session.