Red Hat Training

A Red Hat training course is available for JBoss Enterprise SOA Platform

18.20. Add a Custom Log-In Module

Procedure 18.7. Task

  1. Open the log-in configuration file in a text editor: vi SOA_ROOT/jboss-as/server/PROFILE/conf/login-config.xml
  2. Add the details of your custom log-in module.
  3. Save the file and exit.
  4. Since different log-in modules require different information, you must specify the CallbackHandler attribute to be used. Open the specific security configuration for that service.
  5. Make sure that the CallbackHandler specifies a fully-qualified classname for the class which implements the EsbCallbackHandler interface. This code shows you how to do so:
    public interface EsbCallbackHandler extends CallbackHandler
      void setAuthenticationRequest(final AuthenticationRequest authRequest);
      void setSecurityConfig(final SecurityConfig config);
  6. Add both the "principle" and the credentials needed to authenticate a caller to the AuthenticationRequest class.

JaasSecurityService is replaced with your custom security implementation.