How to configure a global authenticator for JBoss EAP 6?

Solution Verified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.1.x

Issue

  • How to configure a global authenticator for JBoss EAP 6?
  • How to use a custom form authenticator instead of default authenticator provided with JBoss EAP 6 ?
  • We want to create a new authenticator that would allow users to choose their preferred authentication mechanism?

Resolution

  • Global valves are supported in EAP 6.1.0 and Authenticators are specialized valves.

  • They can be configured like global valves in EAP 6.1.x but the name attribute must match the auth-method that is specified in the WEB-INF/web.xml.

  • For example, to use a custom SSL authenticator for CLIENT-CERT authentication:

  <valve name="CLIENT-CERT" module="org.jboss.example" class-name="org.jboss.example.CustomSSLAuthenticator">
    <param param-name="ima_parameter" param-value="ima_value"/>
  </valve>
  • To use the custom form authenticator using global valve, configure like the following :
<valve name="FORM" module="org.form.abc" class-name="abc.xyz.re.auth.MyFormAuthenticator"/>
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.