Allow registration of federated auth
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
dcbf434841
commit
4a823188a9
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue