JBoss Community

JBoss AS7 : Security Domain Model

new comment by Bernhard Günter View all comments on this document

Hi,

My custom LoginModule, defined in standalone.xml is not called (JBoss7.1-B1), what could be wrong? On JBoss 4.2 it was working...

 

The stateless beans are annotated with  @org.jboss.security.annotation.SecurityDomain("MyDomain")

and the methods:

@RolesAllowed(..)

 

standalone.xml:

<subsystem xmlns="urn:jboss:domain:security:1.1">

          <security-domains>

                         <security-domain name="MyDomain" cache-type="default">

                                        <authentication>

                                                       <login-module code="de.security.MyDatabaseLoginModule" flag="required"/>

            </authentication>

                    </security-domain>

          </security-domains>

</subsystem>

 

Regards,

Bernhard