Hi,
I have a working web app running on Weblogic 8.1. The security model implemented is using an LDAP server. I would like to use Acegi+CAS for SSO purpose.
The snippet of my web.xml is :
It's within MyServletDispather.java that I implement the security model :Code:... <filter> <filter-name>MyFilter</filter-name> <filter-class>com.personal.MyOwnFilter</filter-class> </filter> <filter-mapping> <filter-name>MyFilter</filter-name> <servlet-name>MyDispatcher</servlet-name> </filter-mapping> <servlet> <servlet-name>MyDispatcher</servlet-name> <servlet-class>com.personal.MyServletDispatcher</servlet-class> <load-on-startup>1</load-on-startup> </servlet> ...
I took the applicationContext-acegi-security.xml ( <Only used by "cas" artifact> ) as my starting point, but here is my questions :Code:public class Dispatcher extends HttpServlet { ... public void doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ... if ( authentication(request,response) ) { doA(); } else { doB(); } } ... }
1. which bean(s) I need to use to replace
2. which bean(s) I need to use to display the current user logged-in ?Code:if ( authentication(request,response) ) {
3. what happen to MyOwnFilter.java ? Do I need to include in the "filterChainProxy" ?
Thanks.



