Change error message handling around authentication "failures". In specific make...
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 2 Oct 2008 16:39:45 +0000 (16:39 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 2 Oct 2008 16:39:45 +0000 (16:39 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/branches/REL_2@2773 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/main/java/edu/internet2/middleware/shibboleth/idp/authn/AuthenticationEngine.java
src/main/java/edu/internet2/middleware/shibboleth/idp/profile/saml1/ShibbolethSSOProfileHandler.java
src/main/java/edu/internet2/middleware/shibboleth/idp/profile/saml2/SSOProfileHandler.java

index 94ea968..cae30a6 100644 (file)
@@ -415,7 +415,7 @@ public class AuthenticationEngine extends HttpServlet {
                 loginHandlers);
 
         if (loginHandlers.isEmpty()) {
-            LOG.error("Force authentication required but no login handlers available to support it");
+            LOG.info("Force authentication requested but no login handlers available to support it");
             throw new ForceAuthenticationException();
         }
     }
index 0fe1d30..5448708 100644 (file)
@@ -243,8 +243,6 @@ public class ShibbolethSSOProfileHandler extends AbstractSAML1ProfileHandler {
         Response samlResponse;
         try {
             if (loginContext.getAuthenticationFailure() != null) {
-                log.error("User authentication failed with the following error: {}", loginContext
-                        .getAuthenticationFailure().toString());
                 requestContext.setFailureStatus(buildStatus(StatusCode.RESPONDER, null, "User failed authentication"));
                 throw new ProfileException("Authentication failure", loginContext.getAuthenticationFailure());
             }
index a6d42b9..84bd585 100644 (file)
@@ -215,9 +215,6 @@ public class SSOProfileHandler extends AbstractSAML2ProfileHandler {
         Response samlResponse;
         try {
             if (loginContext.getAuthenticationFailure() != null) {
-                log.error("User authentication failed with the following error: {}", loginContext
-                        .getAuthenticationFailure().toString());
-
                 if (loginContext.getAuthenticationFailure() instanceof PassiveAuthenticationException) {
                     requestContext.setFailureStatus(buildStatus(StatusCode.RESPONDER_URI, StatusCode.NO_PASSIVE_URI,
                             null));