Re: [appfuse-user] Automatic login with Acegi

2007-12-05 Thread Zakir
I figured it out. You can do something like this: Authentication auth = new UsernamePasswordAuthenticationToken(user, user.getPassword(), user.getAuthorities()); SecurityContextHolder.getContext().setAuthentication(auth); When you create the Authentication object and specify the gratedAu

Re: [appfuse-user] Automatic login with Acegi

2007-12-05 Thread Zakir
I think the code you're referring to is: // log user in automatically Authentication auth = new UsernamePasswordAuthenticationToken(user.getUsername(), user.getConfirmPassword()); try { ProviderManager authenticationManager = (ProviderManager) getBean("authenticationManager");

Re: [appfuse-user] Automatic login with Acegi

2007-12-05 Thread Matt Raible
If you look in SignupFormController, you can see the code that's used to programmatically login the user. Maybe you can use this? Matt On Dec 5, 2007, at 7:37 AM, Zakir wrote: Hello experts. To preface, I am using Acegi 1.9.4 with Spring. Is there any way I can log a user in automatically

[appfuse-user] Automatic login with Acegi

2007-12-05 Thread Zakir
Hello experts. To preface, I am using Acegi 1.9.4 with Spring. Is there any way I can log a user in automatically without their password? Here is my intended process flow: 1. user signs up to the site, and fills in all the details (email, password, name, etc.) 2. system saves the user info (inc