@ -43,6 +47,11 @@ public abstract class AbstractAuthenticationManager implements AuthenticationMan
@@ -43,6 +47,11 @@ public abstract class AbstractAuthenticationManager implements AuthenticationMan
returndoAuthentication(authRequest);
}catch(AuthenticationExceptione){
e.setAuthentication(authRequest);
if(clearExtraInformation){
e.clearExtraInformation();
}
throwe;
}
}
@ -60,4 +69,15 @@ public abstract class AbstractAuthenticationManager implements AuthenticationMan
@@ -60,4 +69,15 @@ public abstract class AbstractAuthenticationManager implements AuthenticationMan
@ -35,7 +35,7 @@ public class AccountExpiredException extends AuthenticationException {
@@ -35,7 +35,7 @@ public class AccountExpiredException extends AuthenticationException {
@ -45,4 +45,8 @@ public class AccountExpiredException extends AuthenticationException {
@@ -45,4 +45,8 @@ public class AccountExpiredException extends AuthenticationException {
@ -40,8 +36,7 @@ public class BadCredentialsException extends AuthenticationException {
@@ -40,8 +36,7 @@ public class BadCredentialsException extends AuthenticationException {
@ -57,12 +52,4 @@ public class BadCredentialsException extends AuthenticationException {
@@ -57,12 +52,4 @@ public class BadCredentialsException extends AuthenticationException {
@ -45,4 +45,8 @@ public class CredentialsExpiredException extends AuthenticationException {
@@ -45,4 +45,8 @@ public class CredentialsExpiredException extends AuthenticationException {
@ -44,4 +44,8 @@ public class DisabledException extends AuthenticationException {
@@ -44,4 +44,8 @@ public class DisabledException extends AuthenticationException {
@ -44,4 +44,8 @@ public class LockedException extends AuthenticationException {
@@ -44,4 +44,8 @@ public class LockedException extends AuthenticationException {
@ -266,6 +266,12 @@ public abstract class AbstractUserDetailsAuthenticationProvider implements Authe
@@ -266,6 +266,12 @@ public abstract class AbstractUserDetailsAuthenticationProvider implements Authe
@ -286,19 +292,18 @@ public abstract class AbstractUserDetailsAuthenticationProvider implements Authe
@@ -286,19 +292,18 @@ public abstract class AbstractUserDetailsAuthenticationProvider implements Authe
@ -306,9 +311,9 @@ public abstract class AbstractUserDetailsAuthenticationProvider implements Authe
@@ -306,9 +311,9 @@ public abstract class AbstractUserDetailsAuthenticationProvider implements Authe
@ -82,31 +79,6 @@ public class DaoAuthenticationProvider extends AbstractUserDetailsAuthentication
@@ -82,31 +79,6 @@ public class DaoAuthenticationProvider extends AbstractUserDetailsAuthentication
Assert.notNull(this.userDetailsService,"A UserDetailsService must be set");
@ -172,5 +144,4 @@ public class DaoAuthenticationProvider extends AbstractUserDetailsAuthentication
@@ -172,5 +144,4 @@ public class DaoAuthenticationProvider extends AbstractUserDetailsAuthentication
@ -22,21 +22,21 @@ public class AccountStatusUserDetailsChecker implements UserDetailsChecker {
@@ -22,21 +22,21 @@ public class AccountStatusUserDetailsChecker implements UserDetailsChecker {
publicvoidcheck(UserDetailsuser){
if(!user.isAccountNonLocked()){
thrownewLockedException(messages.getMessage("UserDetailsService.locked","User account is locked"));
thrownewLockedException(messages.getMessage("UserDetailsService.locked","User account is locked"),user);
}
if(!user.isEnabled()){
thrownewDisabledException(messages.getMessage("UserDetailsService.disabled","User is disabled"));
thrownewDisabledException(messages.getMessage("UserDetailsService.disabled","User is disabled"),user);