SEC-2367: ProviderManager rethrows InternalAuthenticationServiceExceptions

This commit is contained in:
Rob Winch
2013-12-04 16:19:33 -06:00
parent 7e274ea5b6
commit fa39ecd719
2 changed files with 17 additions and 0 deletions

View File

@@ -163,6 +163,9 @@ public class ProviderManager implements AuthenticationManager, MessageSourceAwar
prepareException(e, authentication);
// SEC-546: Avoid polling additional providers if auth failure is due to invalid account status
throw e;
} catch (InternalAuthenticationServiceException e) {
prepareException(e, authentication);
throw e;
} catch (AuthenticationException e) {
lastException = e;
}