Source for file test_digest_simple.php
Documentation is available at test_digest_simple.php
require_once "Auth/HTTP.php";
define('DSN','sqlite://dummy:@localhost//tmp/user.db?mode=0644');
$options = array ('dsn'=> DSN, 'authType'=> 'digest');
$auth->setRealm ('dummy', 'sample');
<head><title>HTTP digest authentication test for simple case</title></head>
print "auth: ". $auth->authType. "<br />";
print "username: ". $auth->username. "<br />";
print "password: ". $auth->password. "<br />";
print "auth: ". print_r($auth->auth ). "<br />";
print "authentication is succeeded.<br />";
Documentation generated on Mon, 11 Mar 2019 15:47:23 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|