use Catalyst ();\r
use Digest::MD5 ();\r
\r
-our $VERSION = "0.02";\r
+our $VERSION = "0.04";\r
\r
sub authenticate_http {\r
my $c = shift;\r
\r
=head1 NAME\r
\r
-Catalyst::Plugin::Authentication::Credential::HTTP - HTTP Basic authentication\r
+Catalyst::Plugin::Authentication::Credential::HTTP - HTTP Basic and Digest authentication\r
for Catlayst.\r
\r
=head1 SYNOPSIS\r
Authentication::Credential::HTTP\r
/;\r
\r
+ __PACKAGE__->config->{authentication}{http}{type} = 'any'; # or 'digest' or 'basic'
+ __PACKAGE__->config->{authentication}{users} = {
+ Mufasa => { password => "Circle Of Life", },
+ };\r
+\r
sub foo : Local {\r
my ( $self, $c ) = @_;\r
\r
=head1 DESCRIPTION\r
\r
This moduule lets you use HTTP authentication with\r
-L<Catalyst::Plugin::Authentication>.\r
-\r
-Currently this module only supports the Basic scheme, but upon request Digest\r
-will also be added. Patches welcome!\r
+L<Catalyst::Plugin::Authentication>. Both basic and digest authentication\r
+are currently supported.\r
\r
=head1 METHODS\r
\r
\r
=item authenticate_http\r
\r
-Looks inside C<< $c->request->headers >> and processes the basic (badly named)\r
-authorization header.\r
+Looks inside C<< $c->request->headers >> and processes the digest and basic\r
+(badly named) authorization header.\r
\r
=item authorization_required_response\r
\r