How to configure a global authenticator for JBoss EAP 6?
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 authenticatorinstead of default authenticator provided withJBoss 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.0andAuthenticatorsare specialized valves. -
They can be configured like global valves in
EAP 6.1.xbut thenameattribute must match theauth-methodthat is specified in theWEB-INF/web.xml. -
For example, to use a custom SSL authenticator for
CLIENT-CERTauthentication:
<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"/>
SBR
Components
Category
Tags
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.