summaryrefslogtreecommitdiff
path: root/tests/mod-auth.t
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2016-09-16 16:04:39 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2016-09-22 19:54:57 -0400
commit7ba06c71a65c66f19030b40310a02e7afd8bcf37 (patch)
tree362c52db00f5c1bf647912c699a8aed065a6441a /tests/mod-auth.t
parent381aaae3638db07714d9cc04c8630431e27c5e94 (diff)
downloadlighttpd1.4-7ba06c71a65c66f19030b40310a02e7afd8bcf37.tar.gz
lighttpd1.4-7ba06c71a65c66f19030b40310a02e7afd8bcf37.zip
[mod_auth] structured data, register auth schemes
- parse auth.* directives into structured data during config processing - register auth schemes (basic, digest, extern, ...) for extensibility - remove auth.debug directive
Diffstat (limited to 'tests/mod-auth.t')
-rwxr-xr-xtests/mod-auth.t12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/mod-auth.t b/tests/mod-auth.t
index ba76b040..bed0b875 100755
--- a/tests/mod-auth.t
+++ b/tests/mod-auth.t
@@ -24,16 +24,16 @@ $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 401 } ];
ok($tf->handle_http($t) == 0, 'Missing Auth-token');
$t->{REQUEST} = ( <<EOF
-GET /server-status HTTP/1.0
+GET /server-config HTTP/1.0
Authorization: Basic \x80mFuOmphb
EOF
);
-$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 401 } ];
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 400 } ];
ok($tf->handle_http($t) == 0, 'Basic-Auth: Invalid base64 Auth-token');
$t->{REQUEST} = ( <<EOF
-GET /server-status HTTP/1.0
-Authorization: Basic amFuOmphb
+GET /server-config HTTP/1.0
+Authorization: Basic bm90Oml0Cg==
EOF
);
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 401 } ];
@@ -151,11 +151,11 @@ $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 400 } ];
ok($tf->handle_http($t) == 0, 'Digest-Auth: missing nc (noncecount instead), no crash');
$t->{REQUEST} = ( <<EOF
-GET /server-status HTTP/1.0
+GET /server-config HTTP/1.0
Authorization: Basic =
EOF
);
-$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 401 } ];
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 400 } ];
ok($tf->handle_http($t) == 0, 'Basic-Auth: Invalid Base64');
$t->{REQUEST} = ( <<EOF