Support for authentication

This commit is contained in:
Evan Seguin
2012-07-19 12:52:13 -07:00
parent 1c503f13ff
commit 78a0f180d0
8 changed files with 134 additions and 17 deletions

View File

@@ -0,0 +1,18 @@
<?php
require_once(dirname(__FILE__) . "/../http/AuthUtil.php");
require_once(dirname(__FILE__) . "/HeaderAuth.php");
class MashapeAuth extends HeaderAuth {
private $header;
function __construct($publicKey, $privateKey) {
$this->header = AuthUtil::generateAuthenticationHeader($publicKey, $privateKey);
}
public function handleHeader() {
return $this->header;
}
}
?>