users@glassfish.java.net

Re: Apache mod_proxy_http and REMOTE_USER

From: Braswell, Stephen <stephen_at_unc.edu>
Date: Thu, 3 May 2012 22:38:58 +0000

> 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 Glassfish uses it as the authenticated user?

See if the following trick helps:

http://java.net/projects/glassfish/lists/users/archive/2010-02/message/720