Expand my Community achievements bar.

SOLVED

AuthenticationUtils with many null values

Avatar

Level 1

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

1698425_pastedImage_0.png

/ 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"

          }

        }

      }

1 Accepted Solution

Avatar

Correct answer by
Level 10

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

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.