JYC
JYC

Reputation: 393

How to enrich HTTP request headers with vertx-http-proxy

With vertx-http-proxy (https://github.com/eclipse-vertx/vertx-http-proxy), What is the best way to add/plug our custom authentication mechanism (like an LDAP authentication based on the client cert and populate an Authorization Basic header for our backend target) ?

Upvotes: 1

Views: 916

Answers (1)

Julien Viet
Julien Viet

Reputation: 335

For the moment you can use directly the ProxyRequest and ProxyResponse which gives control over the flow. When the ProxyResponse is ready to be sent, you can before customize the proxy response HTTP headers.

Upvotes: 1

Related Questions