4

Is there a standard mechanism in JSF 2.2 allowing me to include an HTTP header in all HTTP requests, regular or partial ?

I am looking for a solution to have the content of the "Authentication" header copied from the server reply and added to all queries. This way, I could easily use JWT tokens in my JSF apps.

If there is no standard mechanism, one specific to MyFaces 2.2 would be a solution too.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Ludovic Pénet
  • 1,136
  • 1
  • 16
  • 32
  • 2
    Does it really have to be a JSF-tight-coupled approach? A simple servlet filter should already do. – BalusC Mar 18 '16 at 12:39
  • It does not have to be JSF thight, you are right. AFAIK, a servlet filter will allow me to process the input or modify the reply, not to tell the browser which header it should include. – Ludovic Pénet Mar 18 '16 at 13:01

0 Answers0