See also: lithium\net\http\Request::to()
See also: lithium\net\http\Response::digest()
See also: lithium\security\auth\adapter\Http
Inheritance: extends lithium\core\StaticObject
Beispiel #1
0
 public function testDecode()
 {
     $header = 'qop="auth",nonce="4bca0fbca7bd0",' . 'nc="00000001",cnonce="95b2cd1e179bf5414e52ed62811481cf",' . 'uri="/http_auth",realm="app",' . 'opaque="d3fb67a7aa4d887ec4bf83040a820a46",username="******",' . 'response="04d7d878c67f289f37e553d2025e3a52"';
     $expected = array('qop' => 'auth', 'nonce' => '4bca0fbca7bd0', 'nc' => '00000001', 'cnonce' => '95b2cd1e179bf5414e52ed62811481cf', 'uri' => '/http_auth', 'realm' => 'app', 'opaque' => 'd3fb67a7aa4d887ec4bf83040a820a46', 'username' => 'gwoo', 'response' => '04d7d878c67f289f37e553d2025e3a52');
     $result = Auth::decode($header);
     $this->assertEqual($expected, $result);
 }