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.SimplePrincipal
and 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, tools, and much more.