Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-9713

Remote outbound connection with authentication-context cannot be used for remote EJB calls

    Details

      Description

      I have an remote-outbound-connection with a simple authentication configuration which I want to use for server-to-server EJB calls. Relevant configuration snippets:

      <outbound-socket-binding name="remote-ejb">
         <remote-destination host="${remote.ejb.host}" port="8080"/>
      </outbound-socket-binding>
      (...)
      <remote-outbound-connection name="remote-ejb-connection" outbound-socket-binding-ref="remote-ejb" authentication-context="admin-ctx"/>
      (...)
      <authentication-client>
          <authentication-configuration name="admin-cfg" authentication-name="admin" realm="ApplicationRealm" allow-sasl-mechanisms="DIGEST-MD5">
              <credential-reference clear-text="admin123+"/>
          </authentication-configuration>
          <authentication-context name="admin-ctx">
             <match-rule authentication-configuration="admin-cfg"/>
          </authentication-context>
      </authentication-client>             
      

      However, when an application tries to call remote EJBs over this connection (be it by injection via @EJB or by building an InitialContext), the authentication context doesn't seem to be applied - always only the JBOSS-LOCAL-USER mechanism is attempted and if that fails, no other mechanism is attempted.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dmlloyd David Lloyd
                  Reporter:
                  jmartisk Jan Martiska
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: