Skip to main content
varshsr
Level 5
Oct 16, 2015 2:19 PM UTC
Solved

permission sensitive caching

I have a CUG protected page and implemented /auth_checker directly as below (sharing few lines of configuration)

but not able to see AuthChecker: initialized with URL 'configured_url'. in the dispatcher logs using apache 2.2 and dispatcher 4.1.7 in windows , please share any ideas

also share if dispatcher.any file with /auth_checker configured just to validate

/farms
  {
  /website 
    {  
    /auth_checker
      {
       /url "/bin/permissioncheck.html"

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Adobe Employee
Oct 22, 2015 8:52 PM UTC

You should see a message on DEBUG level like this:

Authorization checker: initialized with URL '/bin/permissioncheck.html'

if you don't have this line, the permission check is not configured, thus PSC is not active.

12 replies

Level 3
Oct 16, 2015 3:17 PM UTC
This probably isn't very helpful but... Do you have loglevel set to debug?
Translate
varshsr
varshsrAuthor
Level 5
Oct 16, 2015 4:07 PM UTC

Yes log level set to 3 and not seeing AuthChecker: initialized with URL 'configured_url message or request going to publish for permission checking

Translate
Level 3
Oct 16, 2015 5:25 PM UTC

Ok sorry. I configured permission sensitive caching a while ago and I recall that I had to futz with the configuration to get it right. But I don't remember what exactly was the problem.

If you put some garbage in there or misspell auth_checker does Dispatcher complain after startup about the broken configuration? Is Dispatcher definitely reading that section of the configuration?

Translate
varshsr
varshsrAuthor
Level 5
Oct 16, 2015 6:15 PM UTC

i had checked configuration looks good and there is no error about auth_checker in the logs which makes me think if dispatcher is reading that section correctly ,is it possible to share any working dispatcher.any with auth_checker configured

Translate
varshsr
varshsrAuthor
Level 5
Oct 19, 2015 9:21 AM UTC

please share a working dispatcher.any with /auth_checker configured to validate the configurations

Translate
Level 3
Oct 19, 2015 12:41 PM UTC

So sorry, I don't have a working configuration file.

Are you sure that Dispatcher is loading the correct configuration file? If you intentionally break the configuration do you see errors in the Dispatcher log?

For example, if you change "/auth_checker" to "/auth_checker_broken" or just "auth_checker_broken" (with no preceding slash), does Dispatcher complain?

Translate
varshsr
varshsrAuthor
Level 5
Oct 20, 2015 7:38 AM UTC

Thanks , but it is not helping not seeing any log and still the CUG pages are not cached and log prints request contains authorization even when /allowAuthorized is "1"

Translate
Level 3
Oct 20, 2015 8:35 AM UTC

Is Dispatcher definitely loading the correct dispatcher.any file?

Translate
varshsr
varshsrAuthor
Level 5
Oct 20, 2015 8:55 AM UTC

Yes it is loading dispatcher.any but PSC is not effective

Translate
varshsr
varshsrAuthor
Level 5
Oct 22, 2015 12:48 PM UTC

Any help / idea ?

Translate