ging / fiware-idm

OAuth 2.0-based authentication of users and devices, user profile management, Single Sign-On (SSO) and Identity Federation across multiple administration domains.
https://keyrock-fiware.github.io
MIT License
36 stars 81 forks source link

JWT Token does not have organizations and roles. #242

Open jonathandeclan opened 2 years ago

jonathandeclan commented 2 years ago

After authenticating using /oauth2/token endpoint with User A's credentials (username and password) with grant_type=password and scope=jwt, JWT token returned does not have organizations/id and roles encoded inside even though User A has been added to Organization A. Properties returned with empty array [].

Are the organizations and roles properties supposed to have data?

Using Docker image: fiware/idm:8.1.0

tobinski commented 1 year ago

Kind of the same problem. The user misses the organizations he is a member of. @jonathandeclan did you ever found a solution

a-mroz commented 1 year ago

The issue seems to be missing entries in the role_assignment table – when added, my tokens started having organizations and roles. I don't know what UI/API is responsible for creating it, though.