How I can I access login information (including password) sent from an EJB client using a custom login module?

Solution In Progress - Updated -

Issue

  • I have a custom LoginModule within I would like to access the password from an ejb client. Unfortunately I didn't manage to access the orignal password provided from the ejb client. I only get an instance of org.jboss.as.security.remoting.RemotingConnectionCredential or a string containing the class name.

  • What is the correct way to access the password (clear text) so that it's sent to the custom LoginModule?

  • Our custom EJB security domain in standalone.xml is:

                <security-domain name="custom-ejb-domain" cache-type="default">
                    <authentication>
                        <login-module code="Remoting" flag="optional">
                            <module-option name="password-stacking" value="useFirstPass"/>
                        </login-module>
                        <login-module name="OneCustomLoginModule" code="com.case.loginmodule.OneCustomLoginModule" flag="sufficient" module="ejbcustom"/>
                        <login-module name="EJBCustomAuthenticatorLoginModule" code="com.case.loginmodule.EJBCustomAuthenticatorLoginModule" flag="sufficient" module="ejbcustom"/>
                    </authentication>
                </security-domain>

Environment

Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
- 7.0.x

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