How do you add a custom authenticator in Wildfly? I used to do this in JBoss 4.2:
In <JBoss>\jboss-as\server\production\deploy\jboss-web.deployer\META-INF\jboss-service.xml, add the following in <java:properties>:
<java:property>
<java:key>MY-CUSTOM-AUTH</java:key>
<java:value>com.test.MyCustomAuthenticator</java:value>
</java:property>
In <JBoss>\jboss-as\server\production\deploy\jboss-portal-ha.sar\portal-server.war\WEB-INF\web.xml, modify <auth-method>:
...
<login-config>
<auth-method>MY-CUSTOM-AUTH</auth-method>
...
Wildfly does not have jboss-service.xml anymore.
I found the answer, and posted it here: https://stackoverflow.com/questions/28416668/wildfly-custom-auth-method/28505860#28505860