SEC-639: Removed reference to FilterToBeanProxy in cas doc
This commit is contained in:
parent
6fcadb2022
commit
02f955fe52
|
@ -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[
|
||||||
<bean id="serviceProperties" class="org.springframework.security.ui.cas.ServiceProperties">
|
<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="service" value="https://localhost:8443/contacts-cas/j_spring_cas_security_check"/>
|
||||||
<property name="sendRenew"><value>false</value></property>
|
<property name="sendRenew"><value>false</value></property>
|
||||||
</bean>
|
</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[
|
||||||
<bean id="casProcessingFilter" class="org.springframework.security.ui.cas.CasProcessingFilter">
|
<bean id="casProcessingFilter" class="org.springframework.security.ui.cas.CasProcessingFilter">
|
||||||
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
|
<property name="authenticationManager" ref="authenticationManager"/>
|
||||||
<property name="authenticationFailureUrl"><value>/casfailed.jsp</value></property>
|
<property name="authenticationFailureUrl" value="/casfailed.jsp"/>
|
||||||
<property name="defaultTargetUrl"><value>/</value></property>
|
<property name="defaultTargetUrl" value="/"/>
|
||||||
<property name="filterProcessesUrl"><value>/j_spring_cas_security_check</value></property>
|
<property name="filterProcessesUrl" value="/j_spring_cas_security_check"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="exceptionTranslationFilter" class="org.springframework.security.ui.ExceptionTranslationFilter">
|
<bean id="exceptionTranslationFilter" class="org.springframework.security.ui.ExceptionTranslationFilter">
|
||||||
<property name="authenticationEntryPoint"><ref local="casProcessingFilterEntryPoint"/></property>
|
<property name="authenticationEntryPoint" ref="casProcessingFilterEntryPoint"/>
|
||||||
</bean>
|
</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>
|
|
||||||
|
|
||||||
|
<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[
|
||||||
<filter>
|
<filter>
|
||||||
<filter-name>Spring Security CAS Processing Filter</filter-name>
|
<filter-name>casProcessingFilter</filter-name>
|
||||||
<filter-class>org.springframework.security.util.FilterToBeanProxy</filter-class>
|
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
|
||||||
<init-param>
|
</filter>
|
||||||
<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>
|
|
||||||
|
|
||||||
|
<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
|
||||||
|
|
Loading…
Reference in New Issue