On Jan 23, 2008 2:30 PM, Ian Docherty <[EMAIL PROTECTED]> wrote:
> This might seem like a stupid question, and one that probably has a
> I could use Apache Basic Authentication, but I would prefer to hold
> usernames passwords in
> a database rather than a htpasswd file.

Just do

    my ($username, $password) = $c->req->headers->authorization_basic;

There's no need to have Apache handle it.

I have an app with both an HTML and a REST/XML interface (under
'/REST/'), and simply give the REST controller its own auto() sub,
containing the above line. Works fine.

Andrew

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to