summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/AppInfo
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-06-27 10:50:10 +0200
committerVincent Petry <pvince81@owncloud.com>2016-06-27 10:50:10 +0200
commit0d3de20b021e3323f1873accacb7c4533f34e213 (patch)
treeae13c0a061d24d29bc04a5ec8d12df51cdcedc81 /apps/files_external/lib/AppInfo
parentf65787ffdcfd4d6d112e27e11fb108fdfd5f69b9 (diff)
downloadnextcloud-server-0d3de20b021e3323f1873accacb7c4533f34e213.tar.gz
nextcloud-server-0d3de20b021e3323f1873accacb7c4533f34e213.zip
Quickfix: do not lazy load auth mechanisms for ext storages
Some auth mechanisms like SessionCredentials need to register hooks early, so they cannot be lazy loaded.
Diffstat (limited to 'apps/files_external/lib/AppInfo')
-rw-r--r--apps/files_external/lib/AppInfo/Application.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_external/lib/AppInfo/Application.php b/apps/files_external/lib/AppInfo/Application.php
index f78411038fa..b2eaf225e9e 100644
--- a/apps/files_external/lib/AppInfo/Application.php
+++ b/apps/files_external/lib/AppInfo/Application.php
@@ -52,6 +52,10 @@ class Application extends App implements IBackendProvider, IAuthMechanismProvide
$backendService->registerBackendProvider($this);
$backendService->registerAuthMechanismProvider($this);
+ // force-load auth mechanisms since some will register hooks
+ // TODO: obsolete these and use the TokenProvider to get the user's password from the session
+ $this->getAuthMechanisms();
+
// app developers: do NOT depend on this! it will disappear with oC 9.0!
\OC::$server->getEventDispatcher()->dispatch(
'OCA\\Files_External::loadAdditionalBackends'