Change load order of auth backends so that we can throw an exception in OCA\DAV\Connector\Sabre\Auth - fixes #25362 (#25476)
This commit is contained in:
parent
f414c664f2
commit
e795f7b106
|
@ -72,13 +72,16 @@ class Server {
|
|||
$this->server->setBaseUri($this->baseUri);
|
||||
|
||||
$this->server->addPlugin(new BlockLegacyClientPlugin(\OC::$server->getConfig()));
|
||||
$authPlugin = new Plugin($authBackend, 'ownCloud');
|
||||
$authPlugin = new Plugin();
|
||||
$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->addBackend($authBackend);
|
||||
|
||||
// debugging
|
||||
if(\OC::$server->getConfig()->getSystemValue('debug', false)) {
|
||||
$this->server->addPlugin(new \Sabre\DAV\Browser\Plugin());
|
||||
|
|
Loading…
Reference in New Issue