Hi!
I'm trying to user JAAS with JBoss and it is not easy.
I have implemented a basic LoginModule that authenticates a user. Now, I set the login configuration property in my test servlet that uses the login module via LoginContext.
Basically I have everything that I need for basic JAAS usage and it works in plain Tomcat but my JBoss complains when I try to run the Subject.doAs(...) method.
It says something about 'Subject-based policy'-things in a form of SecurityException. Does anyone know what this mean and better yet, does anyone have good instructions how to utilize JAAS in JBoss, easily!? =)
Thanks alot!
Jay