title: JAAS and Wildfly10
body: <p>I have been trying to use a custom class(<code>CustomLoginModule</code>) that implements <code>javax.security.auth.spi.LoginModule</code> and deploy it in wildfly 10. I have put the configurations in standalone.xml stated as below. I am not able to figure out the cause why the <code>CustomLoginModule</code> never gets invoked. I have enabled trace and able to figure out the class gets loaded from the modules directory of <code>Wildfly10</code>.</p>
  
  <p>Standalone configuration:</p>
  
  <pre><code> &lt;security-domain name="xxxx"&gt;
                      &lt;authentication&gt;
  &lt;login-module code="com.test.CustomLoginModule" flag="required"&gt;    
  &lt;module-option name="userQuery" value="select USER_ID from FH_USER_TE where USER_ID=? and PASSWORD=?"/&gt;
  
  &lt;module-option name="roleQuery" value="select ROLE from FH_USER_TE where USER_ID=?"/&gt;                       
  &lt;/login-module&gt;
  &lt;/authentication&gt;
  </code></pre>
  
  <p>It would be great if I can get some advice/suggestions here to make it move forward.</p>
  
  <p>The same worked perfectly in TOMCAT 8</p>
  
  <p>Thanks,
  Dwaipayan</p>