How to 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 to:
<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, change:
...
<login-config>
<auth-method>MY-CUSTOM-AUTH</auth-method>
...
Wildfly no longer has jboss-service.xml.
source
share