SEC-1399: Remove MockAuthenticationManager in app context file for FilterChainProxy tests.

This commit is contained in:
Luke Taylor 2010-02-20 21:59:44 +00:00
parent ea7ccc718d
commit 26cf6f5528
1 changed files with 9 additions and 3 deletions

View File

@ -31,11 +31,17 @@ http://www.springframework.org/schema/security http://www.springframework.org/sc
<bean id="sif" class="org.springframework.security.web.context.SecurityContextPersistenceFilter"/>
<bean id="apf" class="org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter">
<property name="authenticationManager">
<bean class="org.springframework.security.MockAuthenticationManager"/>
</property>
<property name="authenticationManager" ref="authenticationManager"/>
</bean>
<sec:authentication-manager alias="authenticationManager">
<sec:authentication-provider>
<sec:user-service>
<sec:user name="jemima" password="password" authorities="A"/>
</sec:user-service>
</sec:authentication-provider>
</sec:authentication-manager>
<bean id="mockNotAFilter" class="org.springframework.security.web.util.AntUrlPathMatcher"/>
<bean id="filterChain" class="org.springframework.security.web.FilterChainProxy">