[Catalyst] Passing REMOTE_USER to development server

Stephen Shorrock stephen.shorrock at gmail.com
Fri Mar 2 13:09:31 GMT 2012

Many thanks for pointing me towards the docs.

REMOTE_USER=<someuser> plackup ./lib -e'enable ForceEnv => REMOTE_USER
=> $ENV{REMOTE_USER}' myapp.psgi

Seems to do the trick


On Fri, Mar 2, 2012 at 10:26 AM, Eden Cardim <edencardim at gmail.com> wrote:
>>>>>> "Stephen" == Stephen Shorrock <stephen.shorrock at gmail.com> writes:
>    Stephen> Using an older version of Catalyst (5.80007) I used to start the
>    Stephen> development server with:
>    Stephen> REMOTE_USER=userid myapp_server.pl
>    Stephen> and have available in the application userid via
>    Stephen> $ENV{REMOTE_USER}.  Having upgraded to 5.90010 this no longer
>    Stephen> appears to work nor does attempting to access via $c->engine->env
>    Stephen> or $c->req->remote_user.
>    Stephen> How can I set the remote user on development user startup and
>    Stephen> then how should I access it in my controller?
> use Plack::Middleware::ForceEnv, this and other upgrade caveats are documented
> in Catalyst::Upgrading
> --
>      Eden Cardim         Need help with your Catalyst or DBIx::Class project?
>      Code Monkey                 http://www.shadowcat.co.uk/catalyst/
>  Shadowcat Systems Ltd.    Want a managed development or deployment platform?
>  http://edencardim.com            http://www.shadowcat.co.uk/servers/

More information about the Catalyst mailing list