The UsernamePasswordAuthenticatonFilter
will call the RememberMeServices
for you, before your authentication success handler executes. Whether it does anything or not depends on whether the request contains the "remember me" parameter.
So I'm guessing you don't have that parameter in the request. It's not clear from your question exactly what you're trying to achieve - whether you realise this and want to enable remember-me for all requests or not. To always set the cookie for authenticated requests, you can set the alwaysRemember
flag on the RememberMeServices
. However, this isn't exposed through the namespace, so you'd have to obtain a reference to the bean and do it that way (e.g. through a post-processor), or declare the bean manually.