AnsweredAssumed Answered

HTTP header handling

Question asked by gruch on Mar 18, 2017
Latest reply on Mar 20, 2017 by Mark_HE

Dear all,


I'am new in the community and not familiarized with the communication means. So please accept my apologies if it is not the right place to ask such question. Please find below the issue I am facing.


I  am working with Policy Manager 9.2. In my policy, I would like to be able to get a custom HTTP header value of a request in a variable (e.g.: AuthenticatedUser: Username). In the response I would like, based on the aforementioned variable, to compute a token and adding it in another header. I taught that it should be an "out of the shell" feature but it looks harder than expected.


Expected solution:


Request header:


AuthenticatedUser: Username



$username = request.header.AuthenticatedUser.value

$secret= "anysecretfromanywhere"


token = f($username, $secret)


Response header:


Token: 19edajfkladsf8zfda




How can I do such header manipulation ?


Thank you for your help,

Best regards,