Adapting users and roles to Spring Security
We have thought interesting to split apart this section, since users and roles are usually borderline between the application and Spring Security.
In this recipe, we will install the Spring Security dependencies and update the
User Entity. We will also create an
Authority entity that is based on a custom
Role enum that we created. Finally, we update the
init.sql script to add a set of existing users.
How to do it...
- From the Git Perspective in Eclipse, checkout the latest version of the branch
v5.x.x. Then, run a
maven clean installcommand on the
cloudstreetmarket-parentmodule (right-click on the module, go to Run as… | Maven Clean, and then navigate to Run as… | Maven Install). Execute a ...