SEC-1653: Ensure UserDetailsServiceFactoryBean is registered using the tools API to prevent errors in STS.

This commit is contained in:
Luke Taylor 2011-01-11 00:10:07 +00:00
parent 19e56f4397
commit 6de2197c0f
1 changed files with 1 additions and 1 deletions

View File

@ -636,7 +636,7 @@ final class AuthenticationConfigBuilder {
}
RootBeanDefinition bean = new RootBeanDefinition(UserDetailsServiceFactoryBean.class);
bean.setRole(BeanDefinition.ROLE_INFRASTRUCTURE);
pc.getReaderContext().getRegistry().registerBeanDefinition(BeanIds.USER_DETAILS_SERVICE_FACTORY, bean);
pc.registerBeanComponent(new BeanComponentDefinition(bean, BeanIds.USER_DETAILS_SERVICE_FACTORY));
}
List<OrderDecorator> getFilters() {