Issues in Permission Sensitive Caching | Community
Skip to main content
Gunalan_V
Level 3
Apr 12, 2018 7:34 AM UTC
Question

Issues in Permission Sensitive Caching

Hello,

We have configured SAML for the directory /content/ and enabled auth_checker for all the *.pdf files in AEM 6.2

So, In new session when we hit the pdf URL directly in browser for first time (no cache) it's redirecting to IDP page correctly but when the file is already in cache and if we hit that pdf URL in browser it's trying to invoke auth_checker service (/bin/permissioncheck.html) with the SAML enabled url path [1] but it's getting 302 redirect to AEM login instead of IDP redirect.

It's redirecting fine when there is no cache created. Can some one please let me know if any other configuration need to enabled specifically for this auth_checker scenario.

[1]

https://stage.test.com/libs/granite/core/content/login.html?resource=%2Fbin%2Fpermissioncheck.html%3Furi%3D%2Fcontent%2Fdam%2Fdocuments%2Fus%2F%252bProcess%252bUpdate%252bNPSB13_121.pdf&$$login$$=%24%24login%24%24&j_reason=unknown&j_reason_code=unknown

Thanks,

GVK

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

5 replies

Level 3
Oct 29, 2023 5:10 PM UTC

Hi Gunalan,

I also faced the same issue recently.
Could you please let me know how the issue is resolved. 

Translate
joerghoh
Employee
May 8, 2018 8:23 PM UTC

Hm, I would expect that the dispatcher forwards all responses with a statuscode != 200 to the browser (and on 200 deliver the file from cache). Doesn't seem to be the case here.

Can you increase the loglevel of the dispatcher to DEBUG and do the test again? There should be additional logging.

Jörg

Translate
kautuk_sahni
Employee
May 8, 2018 11:08 AM UTC

Jörg Hoh​ If you can offer some help here!!

Translate
Kautuk Sahni
Gunalan_V
Gunalan_VAuthor
Level 3
Apr 12, 2018 9:05 PM UTC

Yes Scott! We are using AEM dispatcher.

Translate
smacdonald2008
Level 10
Apr 12, 2018 1:33 PM UTC

Have you used the AEM Dispatcher here?

Translate