Enabling Propagation of Security Credentials for an EJB 3.1 lite Bean in EAP 6 from a Servlet

Solution Verified - Updated -

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

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content