Chapter 9. Configuring Web Applications

Once you have configured JBoss Negotiation on your server and the connection to FreeIPA or Active Directory, you need to configure your web application to use JBoss Negotiation authentication.
To configure your web application to use JBoss Negotiation authentication, do the following:
  1. Add the SPNEGO security domain to the WEB-INF/jboss-web.xml file:
    <jboss-web>
      <security-domain>java:/jaas/SPNEGO</security-domain>
    </jboss-web>
    
  2. Configure the login-config.xml file to use the SPNEGO authenticator:
    <login-config>
      <auth-method>SPNEGO</auth-method>
      <realm-name>SPNEGO</realm-name>
    </login-config>
    
    The auth-method maps the key used for the authenticator.