Spring-security is not picking up my authentication manager -
I am spoiling with the spring security configuration issue My configuration here Pre <>> My problem is that when a request comes for authentication; I know that only two providers are registered After I believe that you use security to identify your custom provider of security spring Needed: Custom authorization-provider tag For example: You may need it, even on your anonymation provider payer. & 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;
< P> Can I be getting wrong? Please describe? org.springframework.security.authentication.AnonymousAuthenticationProvider@8fe4ad org.springframework.security.authentication.RememberMeAuthenticationProvider@1db9cb9
Comments
Post a Comment