Skip to content

Commit

Permalink
Merge pull request eclipse-ee4j#361 from arjantijms/main
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 authored Jun 6, 2023
2 parents 781aa4e + ff91d94 commit 54e8900
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 54e8900

Please sign in to comment.