Nov 2nd, 2011, 09:44 PM
In our application we have two different user tables called seeker and referrer. These two tables have different fields but but Username and Password fields are common. I have login controller in which i will query the corresponding table based on the user type(seeker or referrer) and user will be taken to the corresponding homepage. If the user is found in the user table, the user object will be set in the session.
For seeker, session.setAttribute("SEEKER","userobj");
For referrer,session.setAttribute("REFERRER","userobj" );
I would like to implement spring security3 with hibernate.
Am not sure how to configure my login controller for authentication in security config file.
Could you please help me on this.
Nov 3rd, 2011, 08:12 AM
By implement spring security3 with hibernate I assume you are specifically meaning login. To do this you can implement UserDetailsService or AuthenticationProvider and use hibernate in your implementation.