add server-to-server magic auth to dav and cdav controllers

This commit is contained in:
zotlabs
2017-08-31 20:45:13 -07:00
parent 0cf5536e90
commit b413beeb36
3 changed files with 122 additions and 31 deletions

View File

@@ -50,7 +50,7 @@ function api_login(&$a){
/* Signature authentication */
if(array_key_exists($head,$_SERVER) && substr(trim($_SERVER[$head]),0,5) === 'Signature') {
if(array_key_exists($head,$_SERVER) && substr(trim($_SERVER[$head]),0,9) === 'Signature') {
$sigblock = \Zotlabs\Web\HTTPSig::parse_sigheader($_SERVER[$head]);
if($sigblock) {
$keyId = $sigblock['keyId'];