diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-07-08 16:52:20 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-09-26 11:55:36 +0200 |
commit | e7085aab387c90f6b5a7f8352864cc0d04bb96d1 (patch) | |
tree | b815396352de0a75083098ca4a8ce0d125fef42f /apps/dav/lib/Server.php | |
parent | 90ab6e4fd9b25a8f031f812d46915e8413483be2 (diff) | |
download | nextcloud-server-e7085aab387c90f6b5a7f8352864cc0d04bb96d1.tar.gz nextcloud-server-e7085aab387c90f6b5a7f8352864cc0d04bb96d1.zip |
Allow not-authenticated access to specific urls
Diffstat (limited to 'apps/dav/lib/Server.php')
-rw-r--r-- | apps/dav/lib/Server.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php index a344885fd29..d67417a10d5 100644 --- a/apps/dav/lib/Server.php +++ b/apps/dav/lib/Server.php @@ -35,6 +35,7 @@ use OCA\DAV\Connector\Sabre\BlockLegacyClientPlugin; use OCA\DAV\Connector\Sabre\DavAclPlugin; use OCA\DAV\Connector\Sabre\DummyGetResponsePlugin; use OCA\DAV\Connector\Sabre\FilesPlugin; +use OCA\DAV\DAV\PublicAuth; use OCA\DAV\Files\BrowserErrorPagePlugin; use OCA\DAV\Files\CustomPropertiesBackend; use OCP\IRequest; @@ -78,6 +79,8 @@ class Server { $this->server->addPlugin(new BlockLegacyClientPlugin(\OC::$server->getConfig())); $authPlugin = new Plugin(); + $authPlugin->addBackend($authBackend); + $authPlugin->addBackend(new PublicAuth()); $this->server->addPlugin($authPlugin); // allow setup of additional auth backends |