Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For example, your fcrepo.properties file might look like this:

Code Block
languagetext
titlefcrepo.properties
fcrepo.auth.principal.roles.enabled=true
fcrepo.auth.principal.roles.list=fedoraUser,fedoraAdmin,tomcat-role-1,tomcat-role-2

And your web.xml would be updated to look like this:

Code Block
languagetextxml
titleweb.xml
<web-app>
  ...
  <security-constraint>
    ...
    <auth-constraint>
      <role-name>fedoraUser</role-name>
      <role-name>fedoraAdmin</role-name>
      <role-name>tomcat-role-1</role-name>
      <role-name>tomcat-role-2</role-name>
    </auth-constraint>
  </securty-constraint>
</web-app>

...