浏览代码

Fix CAS filter configuration.

Luke Taylor 16 年之前
父节点
当前提交
092d7b5c2b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      samples/cas/client/src/main/webapp/WEB-INF/applicationContext-security.xml

+ 1 - 1
samples/cas/client/src/main/webapp/WEB-INF/applicationContext-security.xml

@@ -9,6 +9,7 @@
         <sec:intercept-url pattern="/secure/extreme/**" access="ROLE_SUPERVISOR" requires-channel="https"/>
         <sec:intercept-url pattern="/secure/**" access="ROLE_USER" />
         <sec:logout logout-success-url="/cas-logout.jsp"/>
+        <sec:custom-filter ref="casProcessingFilter" after="CAS_PROCESSING_FILTER"/>        
     </sec:http>
 
     <sec:authentication-manager alias="authenticationManager">
@@ -16,7 +17,6 @@
     </sec:authentication-manager>
 
     <bean id="casProcessingFilter" class="org.springframework.security.cas.web.CasProcessingFilter">
-        <sec:custom-filter after="CAS_PROCESSING_FILTER"/>
         <property name="authenticationManager" ref="authenticationManager"/>
         <property name="authenticationFailureHandler">
             <bean class="org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler">