1 Reply Latest reply on Feb 13, 2015 1:06 PM by quickbrownfox

    Custom authentication

    quickbrownfox

      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.