SessionContext.getCallerPrincipal not returning custom Principal on JBoss
Issue
-
We have created a custom login module and return a custom principal class. When we call SessionContext.getCallerPrincipal() from inside an EJB, it returns a SimplePrincipal not our custom class.
<module-option name="principalClass">example.CustomPrincipal</module-option>
Environment
- JBoss Enterprise Application Platform (EAP)
- 5.1.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
