shyam shridhar wrote:
I think I have to create two separate projects one for admin user and another for customer only this way I'm able to manage security things by spring security.
Please suggest.
Thanks
-sss
No you just have two seperate UserDetailsService classes configured for your AuthenticationManager. And it will check one then the other automatically. So if it doesn't find a user match in the first one, then it will check the second one. If it find a match there, then it goes on.
Check out the Spring Security documentation on UserDetailsService.
You could also always implement your own UserDetailsService. The interface has only one method loadUserByUserName. For a custom UserDetailsService, search www.theserverside.com for my free article that I wrote there a couple months ago.
Mark