Thanks for the very useful information. I have been struggled by this problem for sometime.
I need to ask a question.
Where to put the com.company.CustomLoginModule class? Can it be included in the deployment ear? Or it has to be placed in lib/ext in a jar file.
I think it can go into the EAR file.
From what I understand, ProxyLoginModule essentially bootstraps the loading of the actual LoginModule so that the class is loaded when it's first used rather than when the server starts off.
So providing your enterprise application makes it available there should be no problem with JBoss loading it up when people start trying to log in. Neat.
I think this might have changed slightly in 3.0.0.
Hope this helps.
Neat! It works. Thanks!
Thank you, Jack! I spent hours trying to find out why I was getting an "unable to find login module" exception from JBoss 2.4.8.
I notice that a standard SRP config uses this feature:
However, note that the UserRolesLoginModule does not need to be loaded by the ProxyLoginModule. Can anyone explain why that is?