Reorder calls so as not to change a comitted request
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sat, 12 Jan 2008 09:33:07 +0000 (09:33 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sat, 12 Jan 2008 09:33:07 +0000 (09:33 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2568 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

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

index a49aba8..853a9f5 100644 (file)
@@ -324,8 +324,8 @@ public class AuthenticationEngine extends HttpServlet {
         loginContext.setAuthenticationDuration(logingHandler.getAuthenticationDuration());
         loginContext.setAuthenticationMethod(authnMethod);
         loginContext.setAuthenticationEngineURL(HttpHelper.getRequestUriWithoutContext(httpRequest));
-        logingHandler.login(httpRequest, httpResponse);
         httpRequest.getSession().setAttribute(LoginContext.LOGIN_CONTEXT_KEY, loginContext);
+        logingHandler.login(httpRequest, httpResponse);
     }
 
     /**