Versions Compared

Key

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

...

The security bypass for REST endpoint is accomplished by supplying an alternate ModeShape authentication provider for servlet credentials. This servlet authentication provider permits all actions at the modeshape Modeshape level and does not use a PEP (Policy Enforcement Point).

Step-by-Step

...

Configuration

  1. If you previously configured a PEP, open your repo.xml file and remove any beans that are instances of "org.fcrepo.auth.common.ServletContainerAuthenticationProvider".
  2. Also remove the PEP bean, if one was configured.
  3. Remove the depends-on attribute on the modeshapeRepofactory bean, if there is one.
  4. Open your repository.json file
  5. Under security, configure the "BypassSecurityServletAuthenticationProvider", as shown in the example below.
Code Block
languagejs
titleExample repository.json (security section)
"security" : {

...


  "anonymous" : {

...


    "roles" : ["readonly","readwrite","admin"],

...


    "useOnFailedLogin" : false

...


  },

...


  "providers" : [

...


    { "classname" : "org.fcrepo.auth.commons.BypassSecurityServletAuthenticationProvider" }

...


  ]

...


},