AEM 6.5 : Permission Sensitive caching not working as expected
Hi Everyone - I did following implementation to enable permission sensitive caching in my AEM 6.5 instance:
1. Created an AuthCheckerServlet at /bin/permissionChecker
2. Added /auth_checker section in dispatcher file with uri mapped to uri in #1 above
3. Added allowAuthorized ="1" in /cache section
4. restarted dispatcher
I verified following in dispatcher log:
1. On dispatcher start, i see a message "Authorization checker: initialized with URL '/bin/permissionChecker'
2. When i go to any secured page, i see following in dispatcher log:
[Wed Oct 29 21:31:39 2025] [D] [xxx] Authorization checker: backend answered with status code: 403
[Wed Oct 29 21:31:39 2025] [D] [xxx] No socket reuse: response body not fully consumed
[Wed Oct 29 21:31:39 2025] [I] [xxx] authorization checker denied access: /mnt/var/www/html/content/abc/secure.html
[Wed Oct 29 21:31:39 2025] [D] [xxx] cache-action for [/content/abc/secure.html]: NONE
[Wed Oct 29 21:31:39 2025] [I] [xxx] "GET /content/abc/secure.html" 200 none [publishfarm/0] 53ms
I verified following in publish logs:
1. log message where i am explicitly setting response code 403: