Details
-
Bug
-
Resolution: Done
-
Major
-
7.1.0.DR16
-
None
-
Blocks Testing
-
Description
ElytronSecurityContext.getRoles always returns empty array.
It's because
for (String role : identity.getRoles()) {
SecurityIdentity.getRoles() returns empty Roles Iterable
when changed to
for (String role : identity.getRoles("ejb")) {
it works
I suspect it's because ElytronCallbackHandler sets ejb category
identity = identity.withRoleMapper("ejb", RoleMapper.constant(Roles.fromSet(roles)));
Attachments
Issue Links
- is cloned by
-
WFLY-8690 ElytronSecurityContext.getRoles always returns empty array
- Closed