set authentication instant when user authenticates for first time
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 10 Jul 2007 14:15:08 +0000 (14:15 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 10 Jul 2007 14:15:08 +0000 (14:15 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2299 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

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

index 5d9e87d..596eabf 100644 (file)
@@ -272,6 +272,7 @@ public class AuthenticationEngine extends HttpServlet {
             return;
         }
         loginContext.setPrincipalName(principalName);
+        loginContext.setAuthenticationInstant(new DateTime());
 
         String shibSessionId = (String) httpSession.getAttribute(Session.HTTP_SESSION_BINDING_ATTRIBUTE);
         Session shibSession = getSessionManager().getSession(shibSessionId);