Enabling Propagation of Security Credentials for an EJB 3.1 lite Bean in EAP 6 from a Servlet
Issue
- Require to propagate Security Credential from a Servlet to the corresponding called EJB 3.1 lite.
- The jboss-web.xml file is configured as follows:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<context-root>/some_context</context-root>
<servlet>
<servlet-name>The_SERVLET_NAME</servlet-name>
<run-as-principal>SOME_PRINCIPAL</run-as-principal>
</servlet>
<security-domain>java:/jaas/<SOME_DOMAIN></security-domain>
</jboss-web>
- Within the Servlet, when the EJB Method is invoked, it does not return the caller principal as the one that is called from or as it is expected.
- All methods in the EJB should use the same Security Principal as they are invoked by the Client.
Environment
- JBoss Enterprise Application Platform
- 6.0 - Beta
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.
