summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/server.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-12-03 16:22:18 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-01-12 14:24:01 +0100
commitcdc536c42367a1c7667a63c598f50b95956da759 (patch)
tree2805f98880091afccffcea07ebbe5dda643a0425 /apps/dav/lib/server.php
parent4fc0fbe8d04b7b89ffe1c3b79621ebe12b2057be (diff)
downloadnextcloud-server-cdc536c42367a1c7667a63c598f50b95956da759.tar.gz
nextcloud-server-cdc536c42367a1c7667a63c598f50b95956da759.zip
Allow trusted servers to authenticate
Diffstat (limited to 'apps/dav/lib/server.php')
-rw-r--r--apps/dav/lib/server.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/dav/lib/server.php b/apps/dav/lib/server.php
index a6ad878d29f..8b7171c145c 100644
--- a/apps/dav/lib/server.php
+++ b/apps/dav/lib/server.php
@@ -3,6 +3,7 @@
namespace OCA\DAV;
use OCA\DAV\CalDAV\Schedule\IMipPlugin;
+use OCA\DAV\Connector\FedAuth;
use OCA\DAV\Connector\Sabre\Auth;
use OCA\DAV\Connector\Sabre\BlockLegacyClientPlugin;
use OCA\DAV\Files\CustomPropertiesBackend;
@@ -35,7 +36,9 @@ class Server {
$this->server->setBaseUri($this->baseUri);
$this->server->addPlugin(new BlockLegacyClientPlugin(\OC::$server->getConfig()));
- $this->server->addPlugin(new Plugin($authBackend, 'ownCloud'));
+ $authPlugin = new Plugin($authBackend, 'ownCloud');
+ $authPlugin->addBackend(new FedAuth(\OC::$server->getDatabaseConnection()));
+ $this->server->addPlugin($authPlugin);
$this->server->addPlugin(new \OCA\DAV\Connector\Sabre\DummyGetResponsePlugin());
$this->server->addPlugin(new \OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin('webdav', $logger));
$this->server->addPlugin(new \OCA\DAV\Connector\Sabre\LockPlugin());