AuthenticationUtils with many null values | Community
Skip to main content
February 25, 2019
Solved

AuthenticationUtils with many null values

  • February 25, 2019
  • 1 reply
  • 762 views

I tried to get to the remote ip and changed the configuration on clientheaders or add / info "1" to the config file, but nothing happened. Below is the keys I want to collect values ​​but all of them returned null.

AEM - Questions

/ clientheaders

{

"*"

}

/ auth_checker

{

      / url "/ bin / permissioncheck"

      / filter

        {

        / 0000

          {

         / glob "*"

          / type "deny"

          }         

     /0001

      {

      /glob "*.html"

      /type "allow"

      }    

        }

      / headers

        {

        / 0000

          {

          / glob "*"

          / type "allow"

          }

        / 0001

          {

          / glob "Set-Cookie: *"

          / type "allow"

          }

        }

      }

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Gaurav-Behl

Could you share more details about your use case?

Do you mean that you're not getting headers say 'X-forwarded-for' in your permission-sensitive caching enabled servlet?

Could you make sure that the header(s) are set by Load balancer or other proxies that are above apache/dispatcher?

/clientheaders in dispatcher.any would simply pass-through headers that are allowed in this configuration, it won't generate headers on its own.

1 reply

Gaurav-Behl
Gaurav-BehlAccepted solution
Level 10
February 25, 2019

Could you share more details about your use case?

Do you mean that you're not getting headers say 'X-forwarded-for' in your permission-sensitive caching enabled servlet?

Could you make sure that the header(s) are set by Load balancer or other proxies that are above apache/dispatcher?

/clientheaders in dispatcher.any would simply pass-through headers that are allowed in this configuration, it won't generate headers on its own.