Permission Sensitive Cache Servlet

Available since version 3.13.0

Purpose

Reusable Permission Sensitive Cache Servlet to be used on the /auth_checker configuration of the dispatcher

How to use

  • Create an sling:OsgiConfig config for com.adobe.acs.commons.dispatcher.impl.PermissionSensitiveCacheServlet.
  • Add a multi String property sling.servlet.paths.
  • Property value should be the path you want the /url config in the Dispatcher /auth_checker to call.

Example OSGi Configuration

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
    jcr:primaryType="sling:OsgiConfig"
    sling.servlet.paths="[/bin/mysite/wcm/permissioncheck]"/>

Example Dispathcer Configuration

/auth_checker
  {
  /url "/bin/mysite/wcm/permissioncheck"
       
  /filter
    {
    /0000
      {
      /glob "*"
      /type "deny"
      }
    /0001
      {
      /glob "*.html"
      /type "allow"
      }
    }

  /headers
    {
    /0000
      {
      /glob "*"
      /type "deny"
      }
    /0001
      {
      /glob "Set-Cookie:*"
      /type "allow"
      }
    }
  }