1
0
mirror of synced 2026-08-05 09:47:05 +00:00

SEC-1083: PersistentTokenBasedRememberMeServices does not clear tokens on logout. Override logout method to remove tokens for user.

This commit is contained in:
Luke Taylor
2009-03-16 08:05:02 +00:00
parent b7557d017e
commit 30748e8615
2 changed files with 32 additions and 7 deletions
@@ -138,6 +138,12 @@ public class PersistentTokenBasedRememberMeServices extends AbstractRememberMeSe
}
}
@Override
public void logout(HttpServletRequest request, HttpServletResponse response, Authentication authentication) {
super.logout(request, response, authentication);
tokenRepository.removeUserTokens(authentication.getName());
}
protected String generateSeriesData() {
byte[] newSeries = new byte[seriesLength];
random.nextBytes(newSeries);