Done. Greg
mraible wrote: > > Can you please enter this as an issue in JIRA and we'll get it fixed for > the > next release. > > http://issues.appfuse.org/browse/APF > > Thanks! > > Matt > > On 9/18/07, gederer <[EMAIL PROTECTED]> wrote: >> >> >> AppFuse: 2.0-RC1 >> Jetty: 6.1.5 >> >> >> mraible wrote: >> > >> > What version of AppFuse and what version of Jetty? I'm trying to figure >> > out >> > if this is a bug we should fix? It doesn't seem to happen on Tomcat. >> > >> > Matt >> > >> > On 9/18/07, gederer <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Currently using Jetty. >> >> >> >> Greg >> >> >> >> >> >> mraible wrote: >> >> > >> >> > Thanks for the tip. >> >> > >> >> > What container are you deploying on? I'm wondering why this doesn't >> >> > happen on Tomcat or Jetty. >> >> > >> >> > Matt >> >> > >> >> > On 9/18/07, gederer <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Hi, >> >> >> >> >> >> In order to log the user in automatically after signup, I >> discovered >> >> that >> >> >> I >> >> >> needed to place the SecurityContext in the session. I did this by >> >> >> changing >> >> >> the following code in SignupController: >> >> >> >> >> >> // log user in automatically >> >> >> UsernamePasswordAuthenticationToken auth = new >> >> >> UsernamePasswordAuthenticationToken( >> >> >> user.getUsername(), user.getConfirmPassword(), >> >> >> user.getAuthorities()); >> >> >> auth.setDetails(user); >> >> >> SecurityContextHolder.getContext().setAuthentication(auth); >> >> >> >> >> >> To: >> >> >> >> >> >> // log user in automatically >> >> >> UsernamePasswordAuthenticationToken auth = new >> >> >> UsernamePasswordAuthenticationToken( >> >> >> user.getUsername(), user.getConfirmPassword(), >> >> >> user.getAuthorities()); >> >> >> auth.setDetails(user); >> >> >> SecurityContext context = SecurityContextHolder.getContext >> (); >> >> >> context.setAuthentication(auth); >> >> >> request.getSession().setAttribute("ACEGI_SECURITY_CONTEXT", >> >> >> context); >> >> >> >> >> >> Hope this helps someone! >> >> >> >> >> >> Greg >> >> >> >> >> >> -- >> >> >> View this message in context: >> >> >> >> >> >> http://www.nabble.com/SecurityContext-in-session-required-to-log-user-in-automatically-tf4477004s2369.html#a12765660 >> >> >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> >> >> >> > >> >> > >> >> > -- >> >> > http://raibledesigns.com >> >> > >> >> > >> --------------------------------------------------------------------- >> >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> > For additional commands, e-mail: [EMAIL PROTECTED] >> >> > >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/SecurityContext-in-session-required-to-log-user-in-automatically-tf4477004s2369.html#a12765982 >> >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > >> > -- >> > http://raibledesigns.com >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/SecurityContext-in-session-required-to-log-user-in-automatically-tf4477004s2369.html#a12766537 >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > http://raibledesigns.com > > -- View this message in context: http://www.nabble.com/SecurityContext-in-session-required-to-log-user-in-automatically-tf4477004s2369.html#a12766663 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
