1
0
mirror of synced 2026-08-05 01:36:56 +00:00

Added extra tests for jdbc-user-details service to make sure it works within an <authentication-provider> element.

This commit is contained in:
Luke Taylor
2008-01-31 20:30:37 +00:00
parent e82dfd3f1a
commit 2c6fb3d1c9
4 changed files with 60 additions and 42 deletions
@@ -1,24 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/security"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.xsd">
<beans:bean id="populator" class="org.springframework.security.config.DataSourcePopulator">
<beans:property name="dataSource" ref="dataSource"/>
</beans:bean>
<beans:bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<beans:property name="driverClassName" value="org.hsqldb.jdbcDriver"/>
<beans:property name="url" value="jdbc:hsqldb:mem:jdbcnamespaces"/>
<beans:property name="username" value="sa"/>
<beans:property name="password" value=""/>
</beans:bean>
<jdbc-user-service data-source-ref="dataSource"/>
<jdbc-user-service id="customUserService" data-source-ref="dataSource"/>
</beans:beans>