- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, org.springframework.security.web.authentication.logout.LogoutHandler, org.springframework.security.web.authentication.RememberMeServices
public class EnhancedTokenBasedRememberMeServices
extends org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices
This class adds additional features to the token based remember me services provided by
Spring security. Specifically, we would like to be able to include the httpOnly parameter
to cookie values that are generated by Broadleaf Commerce. Since the default implementation
provided by Spring Security does not provide this additional functionality, we override
here to use the CookieUtils in Broadleaf that will include the httpOnly value.
Note - this class does not add httpOnly protection for session cookies. Adding httpOnly
for session cookies is handled at the application container configuration level, if supported.
- Author:
- jfischer