Skip to content

Commit

Permalink
Merge pull request #344 from Skyllarr/callerPrincipalRebase
Browse files Browse the repository at this point in the history
Do not require a caller principal obtained from EJB to be assignable from CallerPrincipal
  • Loading branch information
arjantijms committed Jun 6, 2023
2 parents f39812c + 7d86ed7 commit e5f8253
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,8 @@ private Principal getVendorCallerPrincipal(Principal principal, boolean isEjb) {
break;
}

if (CallerPrincipal.class.isAssignableFrom(principal.getClass())) {
// do not require a principal from EJBContext to be assignable from CallerPrincipal
if (isEjb || CallerPrincipal.class.isAssignableFrom(principal.getClass())) {
return principal;
}

Expand Down

0 comments on commit e5f8253

Please sign in to comment.