소스 검색

Update CAS sample to use new namespace syntax for authentication providers.

Luke Taylor 16 년 전
부모
커밋
984b2835d6
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      samples/cas/client/src/main/webapp/WEB-INF/applicationContext-security.xml

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

@@ -11,7 +11,9 @@
         <sec:logout logout-success-url="/cas-logout.jsp"/>
     </sec:http>
 
-    <sec:authentication-manager alias="authenticationManager"/>
+    <sec:authentication-manager alias="authenticationManager">
+        <sec:authentication-provider ref="casAuthenticationProvider"/>
+    </sec:authentication-manager>
 
     <bean id="casProcessingFilter" class="org.springframework.security.cas.web.CasProcessingFilter">
         <sec:custom-filter after="CAS_PROCESSING_FILTER"/>
@@ -36,7 +38,6 @@
     </bean>
 
     <bean id="casAuthenticationProvider" class="org.springframework.security.cas.authentication.CasAuthenticationProvider">
-        <sec:custom-authentication-provider />
         <property name="userDetailsService" ref="userService"/>
         <property name="serviceProperties" ref="serviceProperties" />
         <property name="ticketValidator">