The authentication realm was not correctly set.

Fix #457
This commit is contained in:
Evert Pot 2016-02-18 22:23:30 -05:00
parent 5f3ef30df9
commit c75df3adfb
2 changed files with 8 additions and 1 deletions

View file

@ -1,6 +1,12 @@
ChangeLog
=========
0.3.3 (2016-02-18)
-----------------
* #457: The realm was not correctly set from configuration for Digest auth.
0.3.2 (2016-02-16)
------------------

View file

@ -133,7 +133,8 @@ class Server {
if ($this->authType === 'Basic') {
$authBackend = new \Baikal\Core\PDOBasicAuth($this->pdo, $this->authRealm);
} else {
$authBackend = new \Sabre\DAV\Auth\Backend\PDO($this->pdo, $this->authRealm);
$authBackend = new \Sabre\DAV\Auth\Backend\PDO($this->pdo);
$authBackend->setRealm($this->authRealm);
}
$principalBackend = new \Sabre\DAVACL\PrincipalBackend\PDO($this->pdo);