posted 17 years ago
Hi all,
I am trying to add some authentication to my application.
I have a Request interceptor which checks for the existance of a user in the session, if its there it is ok, otherwise it redirects to the logon page.
When a user hist the logon page, the username and password field are valdiated using a validator to ensure there is a user name and password, this is then passed on to the logonControls doSubmitAction.
At this point I wish to authenticate the user and add it to the session.
Even using the onSubmitAction, I cant actual get either a session object or request object.
By this point I am guessing the request object is invalid anyway. But even from the applicationContext I seem to be unabel to find a method to return me a session.
Is it possible to chose which pages an interceptor will affect? I am thinking perhaps some pages will help with access levels/permissions.
Thanks
G