[jboss-dev-forums] [PicketBox Development] - JBoss AS7 : Security Domain Model

Bernhard Günter do-not-reply at jboss.com
Tue Nov 29 07:11:28 EST 2011


Bernhard Günter [http://community.jboss.org/people/berni02] commented on the document

"JBoss AS7 : Security Domain Model"

To view all comments on this document, visit: http://community.jboss.org/docs/DOC-16811#comment-8308

--------------------------------------------------
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
--------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111129/5a59bc82/attachment.html 


More information about the jboss-dev-forums mailing list