Hi All,
I am using the below blog for caching the secured content
Caching Secured Content
This AuthcheckerServlet servlet receives only HEAD requests from the render, so you only need to implement the doHead method.
The render includes the URI of the requested resource as a parameter of the HTTP request. For example, an authorization servlet is accessed via /bin/permissioncheck. To perform a security check on the /content/geometrixx-outdoors/en.html page, the render includes the following URL in the HTTP request:
/bin/permissioncheck?uri=/content/geometrixx-outdoors/en.html
I want to do the security check on the page with query parameters like /content/geometrixx-outdoors/en.html?intcmp=test but this servlet is not taking the query path which I appended.
Following configurations are added to dispatcher to achieve caching secured content.
/auth_checker
{
# request is sent to this URL with '?uri=<page>' appended
/url "/bin/permissioncheck"
# only the requested pages matching the filter section below are checked,
# all other pages get delivered unchecked
/filter
{
/0000
{
/glob "*"
/type "deny"
}
/0001
{
/glob "/content/secure/*.html"
/type "allow"
}
}
# any header line returned from the auth_checker's HEAD request matching
# the section below will be returned as well
/headers
{
/0000
{
/glob "*"
/type "deny"
}
/0001
{
/glob "Set-Cookie:*"
/type "allow"
}
}
}
Any other configurations needed to get this query parameters with page ? Any suggestion will be much appreciated