Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Principal obtained from EJBContext should be returned even if not assignable from CallerPrincipal #343

Open
Skyllarr opened this issue Nov 22, 2022 · 0 comments

Comments

@Skyllarr
Copy link
Contributor

SubjectParser is not returning custom principals from EJBContext. SecurityContext.getCallerPrincipal delegates to EJBContext.getCallerPrincipal which obtains the custom principal correctly. This principal is then not returned because it is not of CallerPrincipal type here.

A custom principal from EJBContext should be returned whether it is of type CallerPrincipal or not, since there is no requirement for the principal from EJBContext to be CallerPrincipal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant