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

SEC-658: Add support for ldap-user-service to AuthenticationProviderBeanDefinitionParser.

This commit is contained in:
Luke Taylor
2008-01-31 20:32:31 +00:00
parent 2c6fb3d1c9
commit ca75905c3e
3 changed files with 18 additions and 0 deletions
@@ -71,6 +71,20 @@ public class AuthenticationProviderBeanDefinitionParserTests {
getProvider().authenticate(bob);
}
@Test
public void worksWithJdbcUserService() throws Exception {
setContext(" <authentication-provider>" +
" <password-encoder hash='{sha}'/>" +
" <user-service>" +
" <user name='bob' password='{SSHA}PpuEwfdj7M1rs0C2W4ssSM2XEN/Y6S5U' authorities='ROLE_A' />" +
" </user-service>" +
" </authentication-provider>");
getProvider().authenticate(bob);
}
@Test
public void externalUserServiceAndPasswordEncoderWork() throws Exception {
setContext(" <authentication-provider user-service-ref='customUserService'>" +