[jboss-dev-forums] [Management Development] New message: "Re: Remote Access to Profile Service"

Emanuel Muckenhuber do-not-reply at jboss.com
Thu Jan 28 09:18:09 EST 2010


JBoss development,

A new message was posted in the thread "Remote Access to Profile Service":

http://community.jboss.org/message/522757#522757

Author  : Emanuel Muckenhuber
Profile : http://community.jboss.org/people/emuckenhuber

Message:
--------------------------------------------------------------
You would need to enable the server side authentication interceptors: in deploy/profileservice-jboss-beans.xml
 
<bean name="ProfileServiceProxyFactory" class="org.jboss.profileservice.remoting.ProxyFactory">
        <!-- Server side security interceptor stack -->
        <property name="serverProxyInterceptors">
            <list>
                <bean class="org.jboss.aspects.security.AuthenticationInterceptor">
                    <constructor>
                        <parameter>
                            <value-factory bean="JNDIBasedSecurityManagement" method="getAuthenticationManager"
                            parameter="jmx-console"/>
                        </parameter>
                    </constructor>
                </bean>
                <bean class="org.jboss.aspects.security.RoleBasedAuthorizationInterceptor">
                    <constructor>
                        <parameter>
                            <value-factory bean="JNDIBasedSecurityManagement" method="getAuthenticationManager"
                                parameter="jmx-console"/>
                        </parameter>
                        <parameter>
                            <value-factory bean="JNDIBasedSecurityManagement" method="getAuthenticationManager"
                                parameter="jmx-console"/>
                        </parameter>
                    </constructor>
                </bean>
            </list>
        </property>
</bean>



 
 
You then still lookup a ProfileService, however calling methods like getViewManager() - should fail with a java.lang.SecurityException.

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/522757#522757




More information about the jboss-dev-forums mailing list