[Catalyst] 5.80005: $c->req->remote_user and apache: excluding actions from authentication

Tomas Doran bobtfish at bobtfish.net
Tue Jun 9 17:53:51 GMT 2009


Francesc Romà i Frigolé wrote:
> This is more of an apache question than a Catalyst one, but I'd 
> appreciate some help.
> 
> I'm trying the new feature $c->req->remote_user introduced in 5.80005. 
> I'd like to know if it is possible to tell apache, in a .htaccess file, 
> to not ask authentication for a certain set of URIs (for example 
> matching /public/)

Yes, it is.

<Location /public>
    Satisfy Any
    Allow from All
</Location>

should do what you want.

Also, if you haven't seen it yet:
http://search.cpan.org/~bobtfish/Catalyst-Plugin-Authentication-0.10012/lib/Catalyst/Authentication/Credential/Remote.pm

may be helpful to you later on.

Cheers
t0m





More information about the Catalyst mailing list