Mac18
Mac18

Reputation: 33

What are Jhipster Roles used for?

I'm new to Jhipster. I wanted to know if anyone can explain to me what Jhipster Roles are used for? Do they give certain users extra permissions?

Upvotes: 0

Views: 501

Answers (1)

Gaël Marziou
Gaël Marziou

Reputation: 16284

Roles/authorities are defined by Spring Security to specify what a user is authorized to do, please read their documentation.

Authorities are then exposed to JHipster Angular's code as state data as explained here which can be used to prevent transition to a state or to hide/show some part of the views using has-authority and has-any-authority directives.

Upvotes: 1

Related Questions