Announcement Announcement Module
Collapse
No announcement yet.
The authentication manager does not see my authentication-provider Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • The authentication manager does not see my authentication-provider

    I've moved my application from Spring Security 2.0.3 and Spring 2.5.6 to Spring 3.0.5. Authentication is broken now.
    The authentication maneger does not see my authentication-provider and throws PrividerNotFoundException. I debugged and my authentication-provider is in the list of providers in Authentication manager. (the only provider).
    But application still throws the exception and send the HTML cod of standard login window(that strange).
    Who can help me? What is wrong?

    Here is security-context:

    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:security="http://www.springframework.org/schema/security"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans http://www.springframework.org/schem...-beans-3.0.xsd
    http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.3.xsd">

    <security:global-method-security secured-annotations="enabled"/>

    <security:authentication-manager alias="authenticationManager">
    <security:authentication-provider ref="accountActivationAuthenticationProvider">
    <securityassword-encoder ref="shaPasswordEncoder"/>
    </security:authentication-provider>
    </security:authentication-manager>

    <bean id="accountActivationAuthenticationProvider" class="mysite.AccountActivationAuthenticationProvi der">
    <property name="userDetailsService" ref="userDetailsService" />
    <!--security:custom-authentication-provider /-->
    </bean>

    <bean id="userDetailsService" class="mysite.NirvanaUserDetailsService">
    <property name="securityService" ref="securityService"/>
    </bean>

    <bean id="shaPasswordEncoder" class="org.springframework.security.authentication .encoding.ShaPasswordEncoder"/>

    <bean id="loggerListener" class="org.springframework.security.access.event.L oggerListener">
    <!--property name="logInteractiveAuthenticationSuccessEvents" value="false"/-->
    </bean>

    </beans>
Working...
X