hrvoje pejcinovic wrote: > Say I have a simple web app with one login screen and two web pages a,b which > are protected. App also has two different types of users userA and userB. How > do I configure the acegi so that upon successful authentication and > authorisation userA gets re-directed to pageA, and userB gets re-directed to > pageB. UserA should only have access to pageA and userB should only have > access to pageB.
Use AbstractProcessingFilter.alwaysUseDefaultTargetUrl = true and set the corresponding defaultTargetUrl property to redirect to an MVC controller that you provide which can automatically handle the appropriate user redirect based on SecurityContextHolder.getContext().getAuthentication().getPrincipal(). Cheers Ben ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Home: http://acegisecurity.org Acegisecurity-developer mailing list Acegisecurity-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer