Handle sublasses of Error in addition to RuntimeException.
@@ -222,6 +222,19 @@ public class AuthenticationProviderFacade implements AuthenticationProvider {
throw e;
}
+ catch (Error e) {
+
+ // Skip using this authentication provider if configured to ignore
+ // internal failures during auth
+ if (isFailureTolerated()) {
+ warnAuthProviderSkipped(e);
+ return null;
+ }
+
+ warnAuthAborted();
+ throw e;
+
+ }
}
@@ -289,6 +302,19 @@ public class AuthenticationProviderFacade implements AuthenticationProvider {
throw e;
}
+ catch (Error e) {
+
+ // Skip using this authentication provider if configured to ignore
+ // internal failures during auth
+ if (isFailureTolerated()) {
+ warnAuthProviderSkipped(e);
+ return null;
+ }
+
+ warnAuthAborted();
+ throw e;
+
+ }
}
