JBoss Community

Re: Every single remote ejb call starts full authentication process with SecurityDomain cache-type="default"

created by Michael Gronau in JBoss AS 7 Development - View the full discussion

Ok, here we go:

 

We have a custom login-module for the remoting connector and another custom LoginModule for EJB Security Domain:

        <security-realm name="ApplicationRealm">
            <authentication>
                <jaas name="jas-remote"/>
            </authentication>
        </security-realm>

 

 

        <security-domains>
            <security-domain name="jas-remote" cache-type="default">
                <authentication>
                    <login-module code="com.os.ee.security.jboss.JBoss7RemotingLoginModule" flag="optional"/>
                </authentication>
            </security-domain>
            <security-domain name="jas" cache-type="default">
                <authentication>
                    <login-module code="com.os.ee.security.jboss.JBoss7ServerLoginModule" flag="required"/>
                </authentication>
            </security-domain>

 

The caching with the remote connection seems to work, i see authentication only once per connection. Only securityDomain 'jas' is called everytime.

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community