SecurityIdentity and Permissions #50827
-
|
Hello, I have a use case where I need to retrieve all permissions of the currently authenticated user — something like However, this doesn’t seem possible since permissions are encapsulated by the permission checker function. One idea I had was to decorate the default The issue is that this approach doesn’t integrate well with Another possible solution would be to add permissions to the roles collection as well. However, this feels like a workaround and suffers from the same testing issue as the previous approach. Any suggestions or guidance would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
|
/cc @sberyozkin (security) |
Beta Was this translation helpful? Give feedback.
@celcius112 We have a rather old PR at quarkusio/quarkus-security#57, I think your post gives us stimulus to actually go ahead and complete it, at least the part that lists permissions