Bit of logging
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sat, 12 Jan 2008 09:13:35 +0000 (09:13 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sat, 12 Jan 2008 09:13:35 +0000 (09:13 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2564 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/idp/authn/AuthenticationEngine.java

index a997626..7c248f6 100644 (file)
@@ -342,7 +342,6 @@ public class AuthenticationEngine extends HttpServlet {
             HttpServletResponse httpResponse) {
         Session shibSession = (Session) httpRequest.getAttribute(Session.HTTP_SESSION_BINDING_ATTRIBUTE);
 
-        LOG.debug("Populating login context with existing session and authentication method information.");
         loginContext.setAuthenticationDuration(authenticationMethod.getAuthenticationDuration());
         loginContext.setAuthenticationInstant(authenticationMethod.getAuthenticationInstant());
         loginContext.setAuthenticationMethod(authenticationMethod.getAuthenticationMethod());
@@ -353,6 +352,8 @@ public class AuthenticationEngine extends HttpServlet {
                 authenticationMethod);
         shibSession.getServicesInformation().put(serviceInfo.getEntityID(), serviceInfo);
 
+        LOG.debug("Treating user {} as authenticated via existing method {}", loginContext.getPrincipalName(),
+                loginContext.getAuthenticationMethod());
         returnToProfileHandler(loginContext, httpRequest, httpResponse);
     }