I have the following scenario.
When a user logs into the application, he can create his own account. This will be the owner of one or more objects. Then he can create users for his own object, so that everyone objectcan have a super administrator, administrator, moderator and other types of roles / permissions.
Based on this description, I want each object to have some related users who have different roles and permissions.
How can I achieve this using spring security? Is there any other easier way?
In my scenario, I think that the role will be enough, but I believe that in the future I will need permissions.
How can this be implemented?
I tried to create my database for such a scenario, but the problem is how to get it working with spring and spring security.
source
share