How to use spring security to manage user roles?

I need to create a user role management module for an online verification tool; there are several users in the system (Admin, Moderator, Contributor, Examiner). These users have different privileges for the system. I need to use Spring and Spring infrastructure for user access system. How to use Spring protection for this module. Can someone direct me to a good tutorial and your ideas are always welcome.

+7
source share
2 answers

Based on your description, I think you can look at the custom implementation of UserDetailsService .
It is worth checking out a sample Stephan Gerth ZK project that integrates Spring, Hibernate, Spring-configured security, ZK Ajax, etc. Here you have a post that has links to the source and documentation . I suggest reading chapter 13.2. Spring - A security system (and related) that should help you navigate the source code.

+5
source

Try this Spring Authorization and Authentication . A very simple primer.

+2
source

All Articles