You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs-cvs@perl.apache.org by st...@apache.org on 2003/06/18 10:35:30 UTC
cvs commit: modperl-docs/src/docs/2.0/user/handlers http.pod
stas 2003/06/18 01:35:29
Modified: src/docs/2.0/user/handlers http.pod
Log:
s/Apache::AUTH_REQUIRED/Apache::HTTP_UNAUTHORIZED/, the previous one is
deprecated
Submitted by: Shannon Eric Peevey <sp...@unt.edu>
Revision Changes Path
1.22 +8 -8 modperl-docs/src/docs/2.0/user/handlers/http.pod
Index: http.pod
===================================================================
RCS file: /home/cvs/modperl-docs/src/docs/2.0/user/handlers/http.pod,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- http.pod 6 Jun 2003 09:24:46 -0000 1.21
+++ http.pod 18 Jun 2003 08:35:29 -0000 1.22
@@ -592,7 +592,7 @@
This phase is usually used to verify a user's identification
credentials. If the credentials are verified to be correct, the
handler should return C<Apache::OK>. Otherwise the handler returns
-C<Apache::AUTH_REQUIRED> to indicate that the user has not
+C<Apache::HTTP_UNAUTHORIZED> to indicate that the user has not
authenticated successfully. When Apache sends the HTTP header with
this code, the browser will normally pop up a dialog box that prompts
the user for login information.
@@ -618,7 +618,7 @@
use Apache::Access ();
use Apache::RequestUtil ();
- use Apache::Const -compile => qw(OK DECLINED AUTH_REQUIRED);
+ use Apache::Const -compile => qw(OK DECLINED HTTP_UNAUTHORIZED);
use Apache::Access();
@@ -634,7 +634,7 @@
if SECRET_LENGTH == length join " ", $r->user, $password;
$r->note_basic_auth_failure;
- return Apache::AUTH_REQUIRED;
+ return Apache::HTTP_UNAUTHORIZED;
}
1;
@@ -679,7 +679,7 @@
storing passwords in clear is a bad idea.
Finally if our authentication fails the handler calls
-note_basic_auth_failure() and returns C<Apache::AUTH_REQUIRED>, which
+note_basic_auth_failure() and returns C<Apache::HTTP_UNAUTHORIZED>, which
sets the proper HTTP response headers that tell the client that its
user that the authentication has failed and the credentials should be
supplied again.
@@ -736,7 +736,7 @@
resource is password protected, similar to the auth phase. The handler
is expected to return C<Apache::DECLINED> to defer the decision,
C<Apache::OK> to indicate its acceptance of the user's authorization,
-or C<Apache::AUTH_REQUIRED> to indicate that the user is not
+or C<Apache::HTTP_UNAUTHORIZED> to indicate that the user is not
authorized to access the requested document.
This phase is of type
@@ -759,7 +759,7 @@
use Apache::Access ();
use Apache::RequestUtil ();
- use Apache::Const -compile => qw(OK AUTH_REQUIRED);
+ use Apache::Const -compile => qw(OK HTTP_UNAUTHORIZED);
use Apache::Access ();
@@ -784,7 +784,7 @@
}
$r->note_basic_auth_failure;
- return Apache::AUTH_REQUIRED;
+ return Apache::HTTP_UNAUTHORIZED;
}
1;
@@ -804,7 +804,7 @@
authentication fails, i.e, calls:
$r->note_basic_auth_failure;
- return Apache::AUTH_REQUIRED;
+ return Apache::HTTP_UNAUTHORIZED;
The configuration is similar to the one in L<the previous
section|/PerlAuthenHandler>, this time we just add the
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-cvs-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-cvs-help@perl.apache.org