title: Wildfly Custom auth-method
body: <p>How do you add a custom authenticator in Wildfly?  I used to do this in JBoss 4.2:</p>
  
  <p>In <code>&lt;JBoss&gt;</code>\jboss-as\server\production\deploy\jboss-web.deployer\META-INF\jboss-service.xml, add the following in :</p>
  
  <pre><code> &lt;java:property&gt;
        &lt;java:key&gt;MY-CUSTOM-AUTH&lt;/java:key&gt;
        &lt;java:value&gt;com.test.MyCustomAuthenticator&lt;/java:value&gt;
   &lt;/java:property&gt;
  </code></pre>
  
  <p>In <code>&lt;JBoss&gt;</code>\jboss-as\server\production\deploy\jboss-portal-ha.sar\portal-server.war\WEB-INF\web.xml, modify :</p>
  
  <pre><code>...
   &lt;login-config&gt;
        &lt;auth-method&gt;MY-CUSTOM-AUTH&lt;/auth-method&gt;
  ...
  </code></pre>
  
  <p>Wildfly does not have jboss-service.xml anymore.</p>