This content has been marked as final.
Show 2 replies
-
1. Re: How can I get JBoss to use my login module?
fhh Jan 29, 2007 7:30 PM (in response to smokingapipe)AFAIK the LoginContext is only created when it is needed for the first time. So unless you start declaring some security constraints on your webapp you will never know whether it works or not.
Regards
Felix -
2. Re: How can I get JBoss to use my login module?
smokingapipe Jan 30, 2007 1:19 AM (in response to smokingapipe)I have it working. It's critical to use exactly the right format in jboss.xml. It must be:
<security-domain>myDomain</security-domain>
not anything with java:/jaas or anything like that.
I wrote my own LoginModule from scratch and it works fine. Is there any reason why I shouldn't use my own LoginModule instead of subclassing some from JBoss? I figured out how to set up the Roles group and the CallerPrincipal group and all the values seem to get passed around correctly.