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]

Reply via email to