[Catalyst] Setting an environment variable with the value of a header

Alejandro Imass alejandro.imass at gmail.com
Mon Mar 25 03:13:02 GMT 2013


On Fri, Mar 22, 2013 at 2:32 PM, Robert Rothenberg <robrwo at gmail.com> wrote:
> I've not gotten replies to my posts regarding HTTP authentication, so I'm
> starting a separate thread.
>
> I am running a Catalyst app as a separate server with a reverse proxy.
>
> If I pass the REMOTE_USER to the Catalyst app via a header such as
> X-Proxy-REMOTE_USER, how do I set the REMOTE_USER value for in the Catalyst app?
>

Is this FastCGI on Apache?? If so, the issue is not Catalyst bu that
Apache FastCGI does not pass auth headers by default. You must do
something like:

   RewriteEngine On

   RewriteCond %{HTTP:Authorization} ^(.+)
   RewriteRule ^(.*)$ $1 [E=HTTP_AUTHORIZATION:%1,PT]



More information about the Catalyst mailing list