-
1. Re: Configuring IdentityLoginModule in JBoss AS
twic Jan 6, 2012 5:45 PM (in response to oeuftete)I don't see this behaviour.
I've written a small webapp to experiment with authentication; at one point, it was using the Identity login module. See (note that this is not the tip r revision):
https://bitbucket.org/twic/jaasdemowebapp/src/49da1063bb2b/
If i start that and hit the JAASServlet, entering any username and password i like, then it prints output like:
<pre>
22:24:56,916 INFO [li.earth.urchin.twic.web.JAASServlet] (http--127.0.0.1-8080-1) Servlet: user = guest
22:24:56,916 INFO [li.earth.urchin.twic.web.JAASServlet] (http--127.0.0.1-8080-1) Servlet: isUserInRole(User) = true
22:24:56,917 INFO [li.earth.urchin.twic.web.JAASServlet] (http--127.0.0.1-8080-1) Servlet: isUserInRole(NoSuchRole) = false
22:24:56,917 INFO [li.earth.urchin.twic.web.JAASServlet] (http--127.0.0.1-8080-1) Servlet: principal = guest
</pre>
If you want to try that code, check it out, install Ivy, set up an ivysettings.xml that suits you, define an IVY_HOME environment variable to point to the directory where the Ivy jars are, and an IVY_SETTINGS environment variableto point to the ivysettings.xml, run get-dependencies.sh to download the libraries, compile the code from src into deployments/jaas-demo.war/WEB-INF/classes, run build-server.sh, then either copy the whole lot into $JBOSS_HOME/standalone and start JBoss, or start it some other way.