4 Replies Latest reply on Oct 23, 2012 10:38 AM by zztg16

    Custom AuthorizationProvider

    zztg16

      Hi,

       

      I'm having a play around with ModeShape 3.0.0.CR3 running on JBoss AS 7.1.1 and i would like to configure a custom AuthorizationProvider, however I'm having a bit of troube getting it registered.

       

      I took a guess at putting it in the autenticators section below repository, but everytime i start the repository it gets removed from my standalone.xml

       

      Thanks,

       

      Steve

        • 1. Re: Custom AuthorizationProvider
          hchiorean

          Hi Steven,

           

          Are you configuring the authentication provider via CLI or just editing standalone-modeshape.xml ? Could you pls post the configuration xml with the <authenticators> section ? Thanks.

          • 2. Re: Custom AuthorizationProvider
            zztg16

            Hi Horia,

             

            Thank you for the very prompt response.

             

            I'm adding it by modifying my standalone.xml file direcly as I couldn't find the correct params under the CLI for this, proably not looking hard enough...

             

            Section from my standalone.xml, the DRSAuthorizationProvider implements the org.modeshape.jcr.security.AuthorizationProvider interface, all that the class does at the moment is to log a line to the console log and return true..  Trying to get the plumbing working firts.

             

            <subsystem xmlns="urn:jboss:domain:modeshape:1.0">

                <repository name="drs" cache-name="drs" cache-container="modeshape" security-domain="other">

                    <authenticators>

                        <authenticator classname="uk.co.drs.security.DRSAuthorizationProvider" module="uk.co.drs" name="DRSAuthorization" />

                    </authenticators>

                    <node-types>

                        <node-type>

                            datamodel/drs.cnd

                        </node-type>

                    </node-types>

                    <workspaces default-workspace="drsWorkspace">

                        <workspace name="drsWorkspace"/>

                        <workspace name="systemWorkspace"/>

                    </workspaces>

                    <cache-index-storage data-cache-name="drs-index-data" metadata-cache-name="drs-index-metadata" lock-cache-name="drs-index-locks" cache-container="modeshapeIndexCache"/>

                </repository>

            </subsystem>

             

            Kind regards,

             

            Steve

            • 3. Re: Custom AuthorizationProvider
              hchiorean

              I think this is caused by a bug in our AS7 subsystem. I've opened https://issues.jboss.org/browse/MODE-1690.

              1 of 1 people found this helpful
              • 4. Re: Custom AuthorizationProvider
                zztg16

                Thank you for your help it's very much apprecated