Add UsernameNotFoundException to default exception to event mappings list.
This commit is contained in:
parent
bdd0f3d055
commit
5a51f391a4
|
@ -39,6 +39,7 @@ import net.sf.acegisecurity.event.authentication.AuthenticationFailureProxyUntru
|
|||
import net.sf.acegisecurity.event.authentication.AuthenticationFailureServiceExceptionEvent;
|
||||
import net.sf.acegisecurity.event.authentication.AuthenticationSuccessEvent;
|
||||
import net.sf.acegisecurity.providers.cas.ProxyUntrustedException;
|
||||
import net.sf.acegisecurity.providers.dao.UsernameNotFoundException;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
@ -198,6 +199,8 @@ public class ProviderManager extends AbstractAuthenticationManager
|
|||
AuthenticationFailureDisabledEvent.class.getName());
|
||||
exceptionMappings.put(BadCredentialsException.class.getName(),
|
||||
AuthenticationFailureBadCredentialsEvent.class.getName());
|
||||
exceptionMappings.put(UsernameNotFoundException.class.getName(),
|
||||
AuthenticationFailureBadCredentialsEvent.class.getName());
|
||||
exceptionMappings.put(ConcurrentLoginException.class.getName(),
|
||||
AuthenticationFailureConcurrentLoginEvent.class.getName());
|
||||
exceptionMappings.put(ProviderNotFoundException.class.getName(),
|
||||
|
|
Loading…
Reference in New Issue