Bläddra i källkod

SEC-659: Change CAS sample to use authentication-manager element.

Luke Taylor 18 år sedan
förälder
incheckning
b93583164d

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

@@ -11,8 +11,12 @@
         <sec:logout />
     </sec:http>
 
-    <bean id="casProcessingFilter" class="org.springframework.security.ui.cas.CasProcessingFilter" autowire="byType">
+
+    <sec:authentication-manager alias="authenticationManager"/>
+
+    <bean id="casProcessingFilter" class="org.springframework.security.ui.cas.CasProcessingFilter">
         <sec:custom-filter after="CAS_PROCESSING_FILTER"/>
+        <property name="authenticationManager" ref="authenticationManager"/>
         <property name="authenticationFailureUrl" value="/casfailed.jsp"/>
         <property name="defaultTargetUrl" value="/"/>
     </bean>