You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Injecting authentication headers using request filters? #15156
but was confused to find that my authenticator wasn't seeing the results. Digging into the issue, the problem seems to be that though doGet() etc. do see the injected headers through HttpServletRequest#getHeader, when I call HttpServletRequest#authenticate on it, it is the wrapped Jetty Request that ultimately descends down to the authenticator, which obviously doesn't have those headers.
Is what I'm attempting here something that should work?
How to reproduce?
Attached is a minimal Maven project that builds an uber-jar that demonstrates the issue. Build with mvn package, run with java -jar target/jetty-request-filtering-0.0.0.jar, and navigate to http://localhost:9000/test. That page will given you 401 Unauthorized, though the filter should inject the X-Username:admin and X-Password:password headers necessary for the authentication.
Activity
Merge pull request #15287 from jetty/fix/jetty-12.1.x/15156-Injecting…
Issue jetty#15156 - fixes for wrapped requests with deferred authenti…
[SPARK-58150][BUILD] Upgrade Jetty to 12.1.11