Warning |
---|
UNDER DEVELOPMENT |
This policy enforcement point (PEP) makes decisions based on the four basic roles of "metadata reader", "reader", "writer", and "admin". These roles are assigned to principals on Fedora objects and datastreams. Assigned roles are inherited through the repository tree until blocked by another assignment.
...
metadata reader | reader | writer | admin | |
---|---|---|---|---|
read properties | X | X | X | X |
read content | X | X | X | |
write | X | X | ||
write roles | X |
Configuring the Basic Role-Based PEP
Edit your repo.xml file to configure the Basic Role-based PEP authentication provider. The file should contain these three beans, as shown:
<bean name="modeshapeRepofactory" class="org.fcrepo.kernel.spring.ModeShapeRepositoryFactoryBean" <bean name="pep" class="org.fcrepo.auth.roles.BasicRolesPEP"/> <bean name="authenticationProvider" class="org.fcrepo.auth.ServletContainerAuthenticationProvider"> |
---|
Since the basic Role-based PEP provides its own roles (described above), there is no need to configure the repository.json security section.