Closed dave0688 closed 11 months ago
JHipster has completed the sample check
.yo-rc.json
:
Entities JDL:
Application: successfully generated
Frontend check: skipped
Backend check: skipped
E2E check: skipped
It's missing jhipster info
from the project.
Closing because no response.
Overview of the issue
In the JWT token, there's only one role, even if two authorities are assigned for the user, i.e.:
So there is a mismatch between the authorities in the DB/User entity, and the JWT token.
The problem is that for example this here:
is not working when the user has 2 roles (and the MEMBER role is the second one).
Motivation for or Use Case
JWT token gets generated and sent with every request.
Reproduce the error
Log into a jHipster application with a user. In User Management, assign a second role.
Log out, and log in again: Decode the jwt, and you will see that there's only one string in
auth
Suggest a Fix
JHipster Version(s)
8.0.0-beta.2
Browsers and Operating System
MacOS, Chrome 116