customization - How to create and configure the custom UserDetailsByNameServiceWrapper in Spring security 3.0.5? -
I am using Spring Security 3.0.5 in my web application based on Spring MVC. We need to check the four parameters for authentication i.e. username, password, company and organization.
For this, I've written my own custom authentication token, which shows these four areas. I also have a custom user description service.
The normal user default service has loadUserByU name (username), but in my case I need this method to accept all four parameters. For this, I have decided to implement the custom implementation of UserDetailsByNameServiceWrapper which calls call loadserByUsername (username).
In my custom implementation, I will just pass the full authentication object instead of the username.
How do I plug my custom user distinbsigname service into the Spring Protection XML file?
Please help
instead of 'create your own' instead of UserDetailsByNameServiceWrapper
& lt; Bean id = "pre-author and proxy" class = "org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationProvider" & gt; & Lt; Property Name = "Prerequired Usered Services" Riff = "yourAuthenticationUserDetailsService" / & gt; & Lt; / Bean & gt;
Comments
Post a Comment