Be sure to reattach login context to request when sending it back to the profile...
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sat, 12 Jan 2008 09:20:03 +0000 (09:20 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sat, 12 Jan 2008 09:20:03 +0000 (09:20 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2566 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

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

index 7c248f6..948dda8 100644 (file)
@@ -106,6 +106,7 @@ public class AuthenticationEngine extends HttpServlet {
     public static void returnToProfileHandler(LoginContext loginContext, HttpServletRequest httpRequest,
             HttpServletResponse httpResponse) {
         LOG.debug("Returning control to profile handler at: {}", loginContext.getProfileHandlerURL());
+        httpRequest.setAttribute(LoginContext.LOGIN_CONTEXT_KEY, loginContext);
         forwardRequest(loginContext.getProfileHandlerURL(), httpRequest, httpResponse);
     }
 
@@ -399,7 +400,6 @@ public class AuthenticationEngine extends HttpServlet {
 
         LOG.debug("User {} authentication with authentication method {}", loginContext.getPrincipalName(), loginContext
                 .getAuthenticationMethod());
-
         returnToProfileHandler(loginContext, httpRequest, httpResponse);
     }