Advice on how to handle multiple roles in JWT #3698
-
In my org we have a standard that requires applications to handle JWT that contain multiple roles (all roles that a particular user has assigned). The application is supposed to provide a user a sum of all permissions assigned to these roles. How would you handle it in PostgREST? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Do those "multiple roles" vary from request to request or would a certain user always list the same roles (until they have been assigned another role or have a role revoked from them)? Which kind of "roles" can the user have? i.e. is this a pre-defined set? Something like "read api, write api, ..."? If yes, how many of those roles exist? |
Beta Was this translation helpful? Give feedback.
Those were exactly the ideas that I had in mind, too:
Algorithm:
claimXXX
.