It is possible to "update" your old code to bypass traditional Acegi processing and use the authentication manager directly.
One relevant thread is here: http://thread.gmane.org/gmane.comp.java.tapestry.user/59931/ (look for the post at 15:33 on Mar 28) with a critical missing bit here: http://article.gmane.org/gmane.comp.java.tapestry.user/60045 You could work with the ASO in the relevant onSuccess method. I should also point you to: http://www.nabble.com/Accessing-ApplicationStateManager-from-within-a-Filter -td20274449.html#a20324607 Part of this thread flips things around and puts all the ASO creation work into a contribution to the Application State Manager. Jonathan > -----Original Message----- > From: rs1050 [mailto:[EMAIL PROTECTED] > Sent: Friday, December 05, 2008 20:59 > To: users@tapestry.apache.org > Subject: tapestry-spring-security: how to set ASO on successful login? > > > Hi, > > I would like to create and set ASO on successful login. Without using > tapestry-spring-security my Login page looked like this: > > public class Login { > > Object onSuccess() { > boolean authResult = authenticate(); > if (authResult) { > // create and set ASO 'myState' > } > } > > @ApplicationState(create=false) > private MyState myState; > } > > after integrating with tapestry-spring-security, spring security > intercepts > submits from the login form, and my Index java page in never called. I was > thinking about providing my own AuthenticationProcessingFilter and there > setting new instance of ASO in http session manually, but it is very ugly > because I will have to invoke this method from > SessionApplicationStatePersistenceStrategy (which is private, so I will > need > to use reflection tricks to overcome, and you get the picture - it becomes > really ugly): > private <T> String buildKey(Class<T> asoClass) > { > return PREFIX + asoClass.getName(); > } > > Any help is appreciated. > R. > -- > View this message in context: http://www.nabble.com/tapestry-spring- > security%3A-how-to-set-ASO-on-successful-login--tp20865863p20865863.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]