Skip to content

Commit

Permalink
Do not require a caller principal obtained from EJB to be assignable …
Browse files Browse the repository at this point in the history
…from CallerPrincipal
  • Loading branch information
Skyllarr authored and arjantijms committed Jun 6, 2023
1 parent 781aa4e commit ff91d94
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 ff91d94

Please sign in to comment.