Skip to content

Instantly share code, notes, and snippets.

@ge0ffrey
Created August 10, 2011 13:25
Show Gist options
  • Save ge0ffrey/1136790 to your computer and use it in GitHub Desktop.
Save ge0ffrey/1136790 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:security="urn:java:org.jboss.seam.security"
xmlns:s="urn:java:ee"
xmlns:guvnorRepository="urn:java:org.drools.guvnor.server.repository"
xmlns:guvnorSecurity="urn:java:org.drools.guvnor.server.security"
xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd
http://jboss.org/schema/weld/beans http://jboss.org/schema/weld/beans_1_1.xsd">
<!-- TODO Move this file under WEB-INF after fixing https://issues.jboss.org/browse/SEAMCONFIG-50 -->
<guvnorRepository:RepositoryStartupService>
<s:modifies/>
<!-- JackRabbit -->
<guvnorRepository:properties>
<s:entry><s:key>org.drools.repository.configurator</s:key><s:value>org.drools.repository.jackrabbit.JackrabbitRepositoryConfigurator</s:value></s:entry>
<!-- the root directory for the repo storage the directory must exist. -->
<!--<s:entry><s:key>repository.root.directory</s:key><s:value>/opt/yourpath</s:value></s:entry>-->
</guvnorRepository:properties>
<!-- ModeShape -->
<!--
passwords for the background users (logInAdmin and mailman), these need to match the setting
you provided for JAAS (used by ModeShape only).
-->
<!--<my:properties>-->
<!--<s:entry><s:key>org.drools.repository.configurator</s:key><s:value>org.drools.repository.modeshape.ModeShapeRepositoryConfigurator</s:value></s:entry>-->
<!--<s:entry><s:key>org.modeshape.jcr.URL</s:key><s:value>jndi:jcr/local?repositoryName=brms</s:value></s:entry>-->
<!--<s:entry><s:key>org.drools.repository.secure.passwords</s:key><s:value>false</s:value></s:entry>-->
<!--<s:entry><s:key>org.drools.repository.logInAdmin.password</s:key><s:value>logInAdmin</s:value></s:entry>-->
<!--<s:entry><s:key>org.drools.repository.mailman.password</s:key><s:value>mailman</s:value></s:entry>-->
<!--</my:properties>-->
</guvnorRepository:RepositoryStartupService>
<security:IdentityImpl>
<s:modifies/>
<!--
NO authentication. This will bypass the login screen when you hit the
app. Everyone is "guest"
-->
<security:authenticatorClass>org.drools.guvnor.server.security.NilAuthenticator</security:authenticatorClass>
<!-- JAAS based authentication -->
<!--<security:authenticatorName>jaasAuthenticator</security:authenticatorName>-->
<!-- IDM based authentication (supports LDAP, see Seam 3 and PicketLink IDM documentation) -->
<!--<security:authenticatorClass>org.jboss.seam.security.management.IdmAuthenticator</security:authenticator>-->
</security:IdentityImpl>
<!--<security:jaas.JaasAuthenticator>-->
<!--<s:modifies/>-->
<!--
The following one will use the jaas configuration called "other",
which in jboss AS means you can use properties files for users.
-->
<!--<jaasConfigName>other</jaasConfigName>-->
<!--</security:jaas.JaasAuthenticator>-->
<!-- SECURITY AUTHORIZATION CONFIGURATION -->
<!--
This is used to enable or disable role-based authorization. By default
it is disabled.
-->
<guvnorSecurity:RoleBasedPermissionResolver>
<guvnorSecurity:enableRoleBasedAuthorization>false</guvnorSecurity:enableRoleBasedAuthorization>
</guvnorSecurity:RoleBasedPermissionResolver>
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment