Back Forum Reply New

How do i call beans after succesful login?

I want to populate some beans after a succesful login but have no idea hos to automatically always call a bean after a sucessful login, please help!

(Using Spring Security 2.0)

Thanks!

You should be able to specify the ucl you want to go to after login, by adding/updating the  quot;defaultTargetuclquot; property in the AuthenticationProcessingFilter.  This target could be a controller that updates your bean, then redirects to another view or something.

You would probably want to set quot;alwaysUseDefaultTargetuclquot; to true in this case.  Not sure if there's a better way to do it or now.

Thanks,
Eric

Thanks mate, will try it out Originally Posted by bessetteYou should be able to specify the ucl you want to go to after login, by adding/updating the  quot;defaultTargetuclquot; property in the AuthenticationProcessingFilter.  This target could be a controller that updates your bean, then redirects to another view or something.

You would probably want to set quot;alwaysUseDefaultTargetuclquot; to true in this case.  Not sure if there's a better way to do it or now.

Thanks,
Eric
Can't find a place to set alwaysUseDefaultTargetucl in Spring Security 2.0, any idea guys?
Thanks!

look for a property in org..security.ui.webapp.Authenticat  ionProcessingFilter

Yes, quot;Some onequot; is absolutely right, to be more specific you can please check out the class quot;org.acegisecurity.ui.AbstractProcessingFilterquot;, alwaysUseDefaultTargetucl actually belongs to above class which is extended by AuthenticationProsessingFilter.

If you have more confusion then please fell free to discuss.........

Good Luck Dude,
Gaurav
¥
Back Forum Reply New