[Catalyst] Plugin::Authentication overrides $c->req->user

Rodrigo rodrigolive at gmail.com
Wed Feb 11 09:06:42 GMT 2009


On Tue, Feb 10, 2009 at 9:46 PM, Daniel Westermann-Clark <dwc at pobox.com>wro=
te:

> Hi,
>
> At work we use, among other things, the value of REMOTE_USER in the
> request environment to authenticate users using our single-sign on
> system.  We access this via $c->req->user, which the various engines
> set using the data available to them.
>
> However, Catalyst::Plugin::Authentication->set_authenticate overrides
> this value with the blessed user object in addition to setting
> $c->user.  Looking at the commit logs, it looks like this has been
> true since 2005 but I'm having a hard time finding a reason why.
>
> Also, Catalyst::Request lists $c->req->user as deprecated.  If it were
> to be removed, how would one access the value in an engine-agnostic
> way?
>

I'm not familiar with $c->req->user, but isn't REMOTE_USER a header you can
read with $c->req->header('remote_user'), or whatever header name is being
passed around?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090211/0869e=
95e/attachment.htm


More information about the Catalyst mailing list