I am trying to develop a Yoga Studio application which gives yoga courses and also sales some yoga products. I have three types of users, A customer--can register for a yoga course and also can buy yoga products. Faculty or Adviser--can do what the customer does plus other things related to the course. An Admin--can do everything. I want to implement spring authentication from database(MySQL) where a user can have multiple roles.would anyone please help me on how to do that, preferably without using UserDetailsService Class.
Asked
Active
Viewed 696 times
0
-
http://www.mkyong.com/spring-security/spring-security-form-login-using-database/ – Evgeni Dimitrov May 11 '14 at 18:47
-
what about when somebody is registering as a new user and the system should give it a role by default. Not hard coded role like on the example on the link. Because when a customer registers the system should give him/her a default role. thanks – Ben May 11 '14 at 20:59
-
Just insert the role when you create the user. – Evgeni Dimitrov May 12 '14 at 05:39