...
The interface that custom providers must implement. Several providers exist in the codebase.
A principal provider must be configured in repo.xml. The following examples shows configuration for a PrincipalProvider class ContainerRolesPrincipalProvider.
Code Block | ||||
---|---|---|---|---|
| ||||
<bean name="containerRolesPrincipalProvider" class="org.fcrepo.auth.common.ContainerRolesPrincipalProvider"
p:roleNames="my-new-tomcat-role"/>
<bean name="authenticationProvider" class="org.fcrepo.auth.common.ServletContainerAuthenticationProvider"
p:fad-ref="fad" p:principalProviders-ref="containerRolesPrincipalProvider"/> |
Container Roles Principal Provider
ContainerRolesPrincipalProvider is a PrincpalProivder that obtains its set of principals from repoweb.xml.
New roles must be specified in web.xml as shown below. The default role is fedoraUser.
...
Please refer to the servlet container authentication document for further configuration details.
HTTP Header Principal Provider
...