I have a Spring 3 MVC website using Spring Security 3.1.0RC2. Currently I am using the org.springframework.security.ldap.authentication.ad.ActiveDirectoryAuthenticationProvider for log-in. For demo purposes, my boss just wants to have to enter a username (any username) and not have it validated against anything, instead, just grant access. Is there some way I can make sure the user entered a username and that’s it?
I have a Spring 3 MVC website using Spring Security 3.1.0RC2. Currently I am
Share
Why not just write your own AuthenticationProvider.
In your spring security config:
UPDATE 1
See above for how to add authorities (granted roles) to the user.