I'm accessing Jetty through Apache using mod_proxy_http. Apache handles the authentication and sets several headers that are passed to Jetty:
May 2, 2012 11:29:20 AM com.sun.jersey.api.container.filter.LoggingFilter filter INFO: 5 * Server in-bound request 5 > GET http://localhost:8080/api/rs/em/ 5 > REMOTE_USER: admin 5 > X-Forwarded-User: admin ... 5 > REMOTE-USER: admin ... I can access these variables through the HttpServletRequest.getHeader() method. However, I would like HttpServletRequest.getRemoteUser() (and javax.ws.rs.SecurityContext) to work (it currently returns NULL). Is there a configuration setting necessary to map the appropriate HTTP header so that Jetty uses it as the authenticated user? This works with mod_proxy_ajp (without forwarding the headers) as the remoteUser is passed to Jetty and set properly. Sincerely, Kevin Regan
_______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
