SessionContext.getCallerPrincipal not returning custom principal on JBoss EAP 5
Issue
-
After migrating to JBoss EAP 5.0, any session bean that invokes
SessionContext.getCallerPrincipal()returns an instance oforg.jboss.security.SimplePrincipaland not the custom class specified in the login module configuration where the custom class is specified in the login module, for example,<module-option name="principalClass">example.CustomPrincipal</module-option>
Environment
- JBoss Enterprise Application Platform (EAP)
- 5.0.x
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.
