Open tsegismont opened 3 weeks ago
I also had a similar issue. I logged it under web by mistake:
Why would this be different in the flow for oauth2 calls vs non oauth calls?
@skoya it may be because the body has been consumed already and the pipe doesn't get any completion event
When the Vert.x Web Proxy handler is installed after an OAuth2 handler, the proxy silently fails to send the request to the backend just after authentication.
If the user is already authenticated with the OAuth2 provider, the proxy successfully sends the request.
Here's an example setup:
With debugging, it appears that when the proxy sets up the pipe on the incoming request, no callback is invoked:
https://github.com/eclipse-vertx/vertx-http-proxy/blob/5ec808d0122d955beb1fdf892d341ee540119e83/src/main/java/io/vertx/httpproxy/impl/ProxiedRequest.java#L195-L203