0 Replies Latest reply on Feb 21, 2007 4:33 AM by Stephen Nelson

    How can I get a realm under a different security domain?

    Stephen Nelson Newbie


      I have an requirement for a login process not supported by FORM authentication and JAAS out of the box. I need to have two roles within an app - one which enables access to a 2nd stage logon and one which allows access to protected resources.

      With this use case I've created two login modules to process the login. The first login module is used as normal form authentication and works fine. However I would like to mimic some of the same behaviour in a custom valve to process authentication.

      As I have two login modules I have them assigned against separate application policies. The second policy is not immediately available to the webapp as I believe the jboss-web.xml file allows a single security domain. I've managed to get the LoginContext to lookup and find the login to process it manually. However there is of course some additional function that JBoss provides through the realm with form-based authentication which I require in order for a user to correctly logon to the system.

      Sorry for this long rambling post but if any of the JBoss developers have some hints on what I should be looking at that would be most useful.