23 $header =
'username=null, realm=myRealm, nonce=12345, uri=/, response=HASH, opaque=1, qop=auth, nc=1, cnonce=1';
41 $header =
'username=array, realm=myRealm, nonce=12345, uri=/, response=HASH, opaque=1, qop=auth, nc=1, cnonce=1';
55 $header =
'username=false, realm=myRealm, nonce=12345, uri=/, response=HASH, opaque=1, qop=auth, nc=1, cnonce=1';
71 $header =
'username=user, realm=myRealm, nonce=12345, uri=/, response=HASH, opaque=1, qop=auth, nc=1, cnonce=1';
74 'REQUEST_METHOD' =>
'PUT',
88 $digestHash = md5(
'HELLO:12345:1:1:auth:' . md5(
'GET:/'));
89 $header =
'username=user, realm=myRealm, nonce=12345, uri=/, response=' . $digestHash .
', opaque=1, qop=auth, nc=1, cnonce=1';
91 'REQUEST_METHOD' =>
'GET',
100 [
true,
'principals/user'],
112 $backend->setRealm(
'writing unittests on a saturday night');
115 $this->assertStringStartsWith(
116 'Digest realm="writing unittests on a saturday night"',
130 case 'null' :
return null;
131 case 'false' :
return false;
132 case 'array' :
return [];
133 case 'user' :
return 'HELLO';
foreach($paths as $path) $request
testCheckBadGetUserInfoResponse()
getDigestHash($realm, $userName)
HTTP Digest authentication backend class.
testCheckBadGetUserInfoResponse2()
Sabre
static createFromServerArray(array $serverArray)
This static method will create a new Request object, based on a PHP $_SERVER array.