Adding a custom HTTP header to all requests

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Adding a custom HTTP header to all requests

Ludovic Pénet
Hi.

I am starting to use "JSON Web Tokens" ( https://jwt.io/ ).

I implemented a tomcat valve checking those tokens and generating new
ones transparently when another valve (such as BasicAuthenticator) takes
care of the initial authentication.
This stuff works and I can use it in a JS client app by setting the
"Authorization" header with the token on every HTTP request.

Is there a way  I can do the same with JSF ?

Thanks in advance,

Ludovic

|
| AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
|