diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-03 16:22:18 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-12 14:24:01 +0100 |
commit | cdc536c42367a1c7667a63c598f50b95956da759 (patch) | |
tree | 2805f98880091afccffcea07ebbe5dda643a0425 /apps/dav/lib/server.php | |
parent | 4fc0fbe8d04b7b89ffe1c3b79621ebe12b2057be (diff) | |
download | nextcloud-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.php | 5 |
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()); |