From 02f955fe52885e4f40b08cd070ec83b2a79a620e Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Tue, 11 Mar 2008 11:27:51 +0000 Subject: [PATCH] SEC-639: Removed reference to FilterToBeanProxy in cas doc --- src/docbkx/cas-auth-provider.xml | 69 ++++++++++++++------------------ 1 file changed, 31 insertions(+), 38 deletions(-) diff --git a/src/docbkx/cas-auth-provider.xml b/src/docbkx/cas-auth-provider.xml index 0f78e43026..80a44d637d 100644 --- a/src/docbkx/cas-auth-provider.xml +++ b/src/docbkx/cas-auth-provider.xml @@ -508,12 +508,11 @@ to your application context. This represents your service: - -<bean id="serviceProperties" class="org.springframework.security.ui.cas.ServiceProperties"> -<property name="service"><value>https://localhost:8443/contacts-cas/j_spring_cas_security_check</value></property> -<property name="sendRenew"><value>false</value></property> -</bean> - + + + false + ]]> The service must equal a URL that will be @@ -527,44 +526,38 @@ The following beans should be configured to commence the CAS authentication process: - -<bean id="casProcessingFilter" class="org.springframework.security.ui.cas.CasProcessingFilter"> -<property name="authenticationManager"><ref bean="authenticationManager"/></property> -<property name="authenticationFailureUrl"><value>/casfailed.jsp</value></property> -<property name="defaultTargetUrl"><value>/</value></property> -<property name="filterProcessesUrl"><value>/j_spring_cas_security_check</value></property> -</bean> + + + + + + -<bean id="exceptionTranslationFilter" class="org.springframework.security.ui.ExceptionTranslationFilter"> -<property name="authenticationEntryPoint"><ref local="casProcessingFilterEntryPoint"/></property> -</bean> - -<bean id="casProcessingFilterEntryPoint" - class="org.springframework.security.ui.cas.CasProcessingFilterEntryPoint"> -<property name="loginUrl"><value>https://localhost:8443/cas/login</value></property> -<property name="serviceProperties"><ref bean="serviceProperties"/></property> -</bean> + + + + + + + + ]]> - You will also need to add the - CasProcessingFilter to web.xml: + You will also need to add the CasProcessingFilter to web.xml: - -<filter> -<filter-name>Spring Security CAS Processing Filter</filter-name> -<filter-class>org.springframework.security.util.FilterToBeanProxy</filter-class> -<init-param> -<param-name>targetClass</param-name> -<param-value>org.springframework.security.ui.cas.CasProcessingFilter</param-value> -</init-param> -</filter> - -<filter-mapping> -<filter-name>Spring Security CAS Processing Filter</filter-name> -<url-pattern>/*</url-pattern> -</filter-mapping> + + casProcessingFilter + org.springframework.web.filter.DelegatingFilterProxy + + + casProcessingFilter + /* + ]]> The CasProcessingFilter has very similar