NTLM Spring Security Exceptions While Login
I am trying to use NTLM with Spring Security. When I run my index.jsp I am getting exception
Error creating bean with name 'authenticationProvider' defined in
ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve
reference to bean 'userDetailsService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.
NoSuch开发者_运维百科BeanDefinitionException: No bean named 'userDetailsService' is defined
In my applicationContext.xml I have defined my custom UserDetailsAuthenticationProvider as
<bean id="authenticationProvider"
class="com.icesoft.icefaces.security.UserDetailsAuthenticationProvider">
<security:custom-authentication-provider/>
<property name="userDetailsService" ref="userDetailsService"/>
</bean>
How can I resolve this error? As I am struggling with this for the past 2 days.
Any help is highly appreciated.
Thanks
It seems you are missing the userDetailsService bean in your Spring config.
Check out this link about the UserDetailsService interface:
http://facestutorials.icefaces.org/tutorial/spring-security-basic.html#userDetailsService
精彩评论