SEC-639: Removed reference to FilterToBeanProxy in cas doc

This commit is contained in:
Luke Taylor 2008-03-11 11:27:51 +00:00
parent 6fcadb2022
commit 02f955fe52
1 changed files with 31 additions and 38 deletions

View File

@ -508,12 +508,11 @@
to your application context. This represents your service:</para> to your application context. This represents your service:</para>
<para><programlisting> <para><programlisting>
<![CDATA[
&lt;bean id="serviceProperties" class="org.springframework.security.ui.cas.ServiceProperties"&gt; <bean id="serviceProperties" class="org.springframework.security.ui.cas.ServiceProperties">
&lt;property name="service"&gt;&lt;value&gt;https://localhost:8443/contacts-cas/j_spring_cas_security_check&lt;/value&gt;&lt;/property&gt; <property name="service" value="https://localhost:8443/contacts-cas/j_spring_cas_security_check"/>
&lt;property name="sendRenew"&gt;&lt;value&gt;false&lt;/value&gt;&lt;/property&gt; <property name="sendRenew"><value>false</value></property>
&lt;/bean&gt; </bean> ]]>
</programlisting></para> </programlisting></para>
<para>The <literal>service</literal> must equal a URL that will be <para>The <literal>service</literal> must equal a URL that will be
@ -527,44 +526,38 @@
<para>The following beans should be configured to commence the CAS <para>The following beans should be configured to commence the CAS
authentication process:</para> authentication process:</para>
<para><programlisting> <para><programlisting><![CDATA[
&lt;bean id="casProcessingFilter" class="org.springframework.security.ui.cas.CasProcessingFilter"&gt; <bean id="casProcessingFilter" class="org.springframework.security.ui.cas.CasProcessingFilter">
&lt;property name="authenticationManager"&gt;&lt;ref bean="authenticationManager"/&gt;&lt;/property&gt; <property name="authenticationManager" ref="authenticationManager"/>
&lt;property name="authenticationFailureUrl"&gt;&lt;value&gt;/casfailed.jsp&lt;/value&gt;&lt;/property&gt; <property name="authenticationFailureUrl" value="/casfailed.jsp"/>
&lt;property name="defaultTargetUrl"&gt;&lt;value&gt;/&lt;/value&gt;&lt;/property&gt; <property name="defaultTargetUrl" value="/"/>
&lt;property name="filterProcessesUrl"&gt;&lt;value&gt;/j_spring_cas_security_check&lt;/value&gt;&lt;/property&gt; <property name="filterProcessesUrl" value="/j_spring_cas_security_check"/>
&lt;/bean&gt; </bean>
&lt;bean id="exceptionTranslationFilter" class="org.springframework.security.ui.ExceptionTranslationFilter"&gt; <bean id="exceptionTranslationFilter" class="org.springframework.security.ui.ExceptionTranslationFilter">
&lt;property name="authenticationEntryPoint"&gt;&lt;ref local="casProcessingFilterEntryPoint"/&gt;&lt;/property&gt; <property name="authenticationEntryPoint" ref="casProcessingFilterEntryPoint"/>
&lt;/bean&gt; </bean>
&lt;bean id="casProcessingFilterEntryPoint"
class="org.springframework.security.ui.cas.CasProcessingFilterEntryPoint"&gt;
&lt;property name="loginUrl"&gt;&lt;value&gt;https://localhost:8443/cas/login&lt;/value&gt;&lt;/property&gt;
&lt;property name="serviceProperties"&gt;&lt;ref bean="serviceProperties"/&gt;&lt;/property&gt;
&lt;/bean&gt;
<bean id="casProcessingFilterEntryPoint"
class="org.springframework.security.ui.cas.CasProcessingFilterEntryPoint">
<property name="loginUrl" value="https://localhost:8443/cas/login"/>
<property name="serviceProperties" ref="serviceProperties"/>
</bean>
]]>
</programlisting></para> </programlisting></para>
<para>You will also need to add the <para>You will also need to add the <literal>CasProcessingFilter</literal> to web.xml:</para>
<literal>CasProcessingFilter</literal> to web.xml:</para>
<para><programlisting> <para><programlisting><![CDATA[
&lt;filter&gt; <filter>
&lt;filter-name&gt;Spring Security CAS Processing Filter&lt;/filter-name&gt; <filter-name>casProcessingFilter</filter-name>
&lt;filter-class&gt;org.springframework.security.util.FilterToBeanProxy&lt;/filter-class&gt; <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
&lt;init-param&gt; </filter>
&lt;param-name&gt;targetClass&lt;/param-name&gt;
&lt;param-value&gt;org.springframework.security.ui.cas.CasProcessingFilter&lt;/param-value&gt;
&lt;/init-param&gt;
&lt;/filter&gt;
&lt;filter-mapping&gt;
&lt;filter-name&gt;Spring Security CAS Processing Filter&lt;/filter-name&gt;
&lt;url-pattern&gt;/*&lt;/url-pattern&gt;
&lt;/filter-mapping&gt;
<filter-mapping>
<filter-name>casProcessingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping> ]]>
</programlisting></para> </programlisting></para>
<para>The <literal>CasProcessingFilter</literal> has very similar <para>The <literal>CasProcessingFilter</literal> has very similar