Spring-security is not picking up my authentication manager -


itemprop = "text">

I am spoiling with the spring security configuration issue

My configuration here

Pre <>> & lt; Security: global-law-security pre-post-annotation = "enabled" /> & Lt; Security: http auto-config = "true" & gt; & Lt; Security: Block-url pattern = "/ dologin" access = "ROLE_USER, ROLE_ANONYMOUS" /> & Lt; Security: form login login processing-url = "/ security_check" login-page = "/ onlogin" always use-default-target = "false" authentication-failure-url = "/ onlogin" default-target-url = "/ home "/> & Lt; Security: logout invalid-session = "true" logout-url = "/ logout" logout-success-url = "/ onlogout" /> & Lt; Security: Remember- I / & gt; & Lt; Security: http-basic / & gt; & Lt; / Security: http & gt; & Lt; Security: Authentication Manager Last Name = "Authentication Manager" & gt; & Lt; Security: Authentication Provider Ref = "Dowautification Provider" / & gt; & Lt; / Security: Authentication Manager & gt; & Lt; Bean id = "anonymous authorization author" class = "org.springframework.security.authentication.AnonymousAuthenticationProvider" & gt; & Lt; Property name = "key" value = "badgerbigerbiger" /> & Lt; / Bean & gt; & Lt; Beam id = "daoAuthenticationProvider" class = "org.springframework.security.authentication.dao.DaoAuthenticationProvider" & gt; & Lt; Property Name = "userDetailsService" ref = "userDetailsService" /> & Lt; / Bean & gt;

My problem is that when a request comes for authentication; I know that only two providers are registered

  org.springframework.security.authentication.AnonymousAuthenticationProvider@8fe4ad org.springframework.security.authentication.RememberMeAuthenticationProvider@1db9cb9  
< P> Can I be getting wrong? Please describe?

After

I believe that you use security to identify your custom provider of security spring Needed: Custom authorization-provider tag

For example:

   & Lt; / Bean & gt;  

You may need it, even on your anonymation provider payer.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -