SEC-920: Update preauth sample to make use of internal authentication manager

http://jira.springframework.org/browse/SEC-920. Updated context file to use <custom-authentication-provider>.
This commit is contained in:
Luke Taylor 2008-07-11 10:56:57 +00:00
parent 8fe1b4b402
commit d9634bcb39
1 changed files with 6 additions and 11 deletions

View File

@ -18,18 +18,13 @@
</sec:filter-chain-map>
</bean>
<bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager">
<property name="providers">
<list>
<ref local="preAuthenticatedAuthenticationProvider"/>
</list>
</property>
</bean>
<bean id="sif" class="org.springframework.security.context.HttpSessionContextIntegrationFilter"/>
<bean id="preAuthenticatedAuthenticationProvider" class="org.springframework.security.providers.preauth.PreAuthenticatedAuthenticationProvider">
<property name="preAuthenticatedUserDetailsService" ref="preAuthenticatedUserDetailsService"/>
<sec:authentication-manager alias="authenticationManager" />
<bean id="preAuthenticatedAuthenticationProvider" class="org.springframework.security.providers.preauth.PreAuthenticatedAuthenticationProvider">
<sec:custom-authentication-provider />
<property name="preAuthenticatedUserDetailsService" ref="preAuthenticatedUserDetailsService"/>
</bean>
<bean id="preAuthenticatedUserDetailsService"