Add a framework for supporting Digest authentication.

This commit is contained in:
Andrew McMillan 2007-08-07 22:42:27 +12:00
parent cab5bf737c
commit 6b1286cf5b
4 changed files with 5 additions and 4 deletions

View File

@ -10,8 +10,8 @@
*/
require_once("../inc/always.php");
dbg_error_log( "caldav", " User agent: %s", ((isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "Unfortunately Mulberry does not send a 'User-agent' header with its requests :-(")) );
require_once("BasicAuthSession.php");
$session = new BasicAuthSession();
require_once("HTTPAuthSession.php");
$session = new HTTPAuthSession();
dbg_log_array( "headers", '_SERVER', $_SERVER, true );
require_once("CalDAVRequest.php");

View File

@ -1,8 +1,8 @@
<?php
require_once("../inc/always.php");
dbg_error_log( "freebusy", " User agent: %s", ((isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "Unfortunately Mulberry and Chandler don't send a 'User-agent' header with their requests :-(")) );
require_once("BasicAuthSession.php");
$session = new BasicAuthSession();
require_once("HTTPAuthSession.php");
$session = new HTTPAuthSession();
dbg_log_array( "headers", '_SERVER', $_SERVER, true );
require_once("CalDAVRequest.php");

View File

@ -14,6 +14,7 @@ $c->sysabbr = 'rscds';
$c->admin_email = 'andrew@catalyst.net.nz';
$c->system_name = "Really Simple CalDAV Store";
$c->domain_name = $_SERVER['SERVER_NAME'];
// $c->http_auth_mode = "Basic";
$c->save_time_zone_defs = true;
$c->collections_always_exist = true;
$c->home_calendar_name = 'home';