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
- Open the log-in configuration file in a text editor:
vi SOA_ROOT/jboss-as/server/PROFILE/conf/login-config.xml
- Add the details of your custom log-in module.
- Save the file and exit.
- 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.
- Make sure that the
CallbackHandler
specifies a fully-qualified classname for the class which implements theEsbCallbackHandler
interface. This code shows you how to do so:public interface EsbCallbackHandler extends CallbackHandler { void setAuthenticationRequest(final AuthenticationRequest authRequest); void setSecurityConfig(final SecurityConfig config); }
- Add both the "principle" and the credentials needed to authenticate a caller to the
AuthenticationRequest
class.
Result
JaasSecurityService is replaced with your custom security implementation.