Hi Folks, i have a requirement to login user automatically from another application into my appfuse application. Say from first application, user submits username and password and is sent to my appfuse application and user is automatically authenticated and the home page is displayed.
I have tried to use a servlet so user sends request to servlet, then servlet uses code below to login user in: UsernamePasswordAuthenticationToken auth = new UsernamePasswordAuthenticationToken( user.getUsername(), user.getConfirmPassword(), user.getAuthorities()); auth.setDetails(user); SecurityContextHolder.getContext().setAuthentication(auth); After which user is redirected to home page but each time i get the access denied message which means its still not recognising user. Has anybody done something like this before? Is it possible? Thanks. On Tue, Jun 1, 2010 at 10:21 AM, <t...@dds.nl> wrote: > > matt et al, > > at my work they want me to tell why opensource is good ;) > > do you have a short pitch? > some numbers ?? > > > thanks, > > tibi > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > For additional commands, e-mail: users-h...@appfuse.dev.java.net > >