(no commit message)
Sascha Kiefer [Sun, 9 Jul 2006 21:32:52 +0000 (21:32 +0000)]
lib/Catalyst/Plugin/Authentication/Credential/HTTP.pm

index 6ef0c09..13d63d3 100644 (file)
@@ -11,7 +11,7 @@ use URI::Escape    ();
 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
@@ -263,7 +263,7 @@ __END__
 \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
@@ -274,6 +274,11 @@ for Catlayst.
         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
@@ -297,10 +302,8 @@ for Catlayst.
 =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
@@ -313,8 +316,8 @@ C<authorization_required_response> and detaches the current action call stack.
 \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