diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-10-20 12:51:54 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-12-19 15:48:00 +0100 |
commit | 4a823188a92aa7ae9190ffc603df6a250a5eed43 (patch) | |
tree | 95c92682d8d159eb7c80bcdefa8d39babc6cc5ee /apps/dav | |
parent | dcbf434841dd05ecce0265beb3cf6c66ca69a11f (diff) | |
download | nextcloud-server-4a823188a92aa7ae9190ffc603df6a250a5eed43.tar.gz nextcloud-server-4a823188a92aa7ae9190ffc603df6a250a5eed43.zip |
Allow registration of federated auth
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Server.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php index 1bae920b791..77002682fa6 100644 --- a/apps/dav/lib/Server.php +++ b/apps/dav/lib/Server.php @@ -84,17 +84,16 @@ class Server { $this->server->setBaseUri($this->baseUri); $this->server->addPlugin(new BlockLegacyClientPlugin(\OC::$server->getConfig())); - + $authPlugin = new Plugin(); + $authPlugin->addBackend(new PublicAuth()); + $this->server->addPlugin($authPlugin); // allow setup of additional auth backends $event = new SabrePluginEvent($this->server); $dispatcher->dispatch('OCA\DAV\Connector\Sabre::authInit', $event); // because we are throwing exceptions this plugin has to be the last one - $authPlugin = new Plugin(); $authPlugin->addBackend($authBackend); - $authPlugin->addBackend(new PublicAuth()); - $this->server->addPlugin($authPlugin); // debugging if(\OC::$server->getConfig()->getSystemValue('debug', false)) { |