SEC-307: Preserve result of AuthenticationManager.authenticate(Authentication).
This commit is contained in:
parent
3b9a8dc53e
commit
1fa89e99c4
|
@ -106,7 +106,7 @@ public class RememberMeProcessingFilter implements Filter, InitializingBean, App
|
||||||
if (rememberMeAuth != null) {
|
if (rememberMeAuth != null) {
|
||||||
// Attempt authenticaton via AuthenticationManager
|
// Attempt authenticaton via AuthenticationManager
|
||||||
try {
|
try {
|
||||||
authenticationManager.authenticate(rememberMeAuth);
|
rememberMeAuth = authenticationManager.authenticate(rememberMeAuth);
|
||||||
|
|
||||||
// Store to SecurityContextHolder
|
// Store to SecurityContextHolder
|
||||||
SecurityContextHolder.getContext().setAuthentication(rememberMeAuth);
|
SecurityContextHolder.getContext().setAuthentication(rememberMeAuth);
|
||||||
|
|
Loading…
Reference in New Issue