开发者

NTLM Spring Security Exceptions While Login

开发者 https://www.devze.com 2023-02-15 05:44 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号