-
1. Re: Jaas Login Module not working properly with AS 7.5.0.Final-redhat-21
lylewang Jul 5, 2015 11:05 PM (in response to ameo)How do you add the login module ? JBoss configuration files ? Logs showing the error ? Your code snippet ?
Here is the doc for doing this on 6.4:
-
2. Re: Jaas Login Module not working properly with AS 7.5.0.Final-redhat-21
ameo Jul 6, 2015 6:07 AM (in response to lylewang)Hello,
the module is defined in the JBoss configuraion file (standalone-full.xml).
Now, after removing the tag cache-type="default" the login-module works fine.
1) Login 2) logout and 3) Login again is working.
During debugging I noticed at 3) Login that it seems that the inifinispan-cache was still alive and filled. So I removed the cache-type:
<subsystem xmlns="urn:jboss:domain:security:1.2">
<security-domains>
...
...
<security-domain name="form-auth" cache-type="default">
<authentication>
<login-module code="de.my.login.module.MyLoginModule" flag="required"/>
</authentication>
</security-domain>
<security-domain name="mydom" cache-type="default"> {removing the cache-type--> OK}
<authentication>
<login-module code="de.my.login.module.MyLoginModule" flag="required">
<module-option name="ignorePasswordCase" value="false"/>
</login-module>
</authentication>
</security-domain>
</security-domains>
</subsystem>
Greetings!