Adding a new Role in Jhipster

 




https://www.jhipster.tech/tips/025_tip_create_new_authority.html

http://techknowblogs.blogspot.com/2016/12/adding-new-role-in-jhipster.html


AuthoritiesConstants.java
public static final String MANAGER = "ROLE_MANAGER";
src/main/resources/config/liquibase/authorities.csv
ROLE_MANAGER
src/main/resources/config/liquibase/users.csv
5;manager;$2a$10$VEjxo0jq2YG9Rbk2HmX9S.k1uZBGYUHdUcid3g/vfiEl7lwWgOH/K;Manager;Manager;manager@localhost;true;en;system
src/main/resources/config/liquibase/users_authorities.csv
5;ROLE_MANAGER
My problem now is how to work with my new role and how to configure it ?

Σχόλια