Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all articles
Browse latest Browse all 12476

Permission sensitive caching

$
0
0

Hello,

 

I am trying to use permission sensitive caching on my website "www.domain.com" for resources that are in a particular location in the DAM. I want to make sure users are logged in when they download resources using this URL: www.domain.com/content/dam/secured/*.*

 

That "secured" folder has been secured using a CUG.

 

I've done the following:

 

1) Configured the dispatcher.any file (under the website directive) with the following /URL:

/url /custom/path/to/servlet

 

2) I've configured the filter to check "/content/dam/secured/*.*"

 

3) After restarting the dispatcher I can see from the logs that auth_checker is configured

 

4) I've created a servlet that implements the dohead method of SlingAllMethodsServlet. The value of the path has been set to /custom/path/to/servlet. I added quite a bit of logging into this servlet/

 

From the dispatchers'log file it looks like all is configured correctly. However, the servlet is never called. I don't see anything appear in the error.log (nor the logging I put in, nor any errors with that servlet). When I use the sling resource resolver tool in system/console/ all seems to work fine when I type www.domain.com/custom/path/to/servlet?uri=test in the test box.

 

Any suggestions about what else I can do to debug this? Has anyone else used sensitive caching before, would you mind sharing your dispatcher exact details + servlet?

 

Many thanks!


Viewing all articles
Browse latest Browse all 12476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>