@ -156,6 +156,7 @@ public class ProviderManager implements AuthenticationManager, MessageSourceAwar
@@ -156,6 +156,7 @@ public class ProviderManager implements AuthenticationManager, MessageSourceAwar
@ -205,7 +206,7 @@ public class ProviderManager implements AuthenticationManager, MessageSourceAwar
@@ -205,7 +206,7 @@ public class ProviderManager implements AuthenticationManager, MessageSourceAwar
// handled the request
}
catch(AuthenticationExceptione){
lastException=e;
lastException=parentException=e;
}
}
@ -234,7 +235,11 @@ public class ProviderManager implements AuthenticationManager, MessageSourceAwar
@@ -234,7 +235,11 @@ public class ProviderManager implements AuthenticationManager, MessageSourceAwar
"No AuthenticationProvider found for {0}"));
}
prepareException(lastException,authentication);
// If the parent AuthenticationManager was attempted and failed than it will publish an AbstractAuthenticationFailureEvent
// This check prevents a duplicate AbstractAuthenticationFailureEvent if the parent AuthenticationManager already published it