summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/config/configadapter.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/lib/config/configadapter.php')
-rw-r--r--apps/files_external/lib/config/configadapter.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_external/lib/config/configadapter.php b/apps/files_external/lib/config/configadapter.php
index 63615e716ae..9829629761c 100644
--- a/apps/files_external/lib/config/configadapter.php
+++ b/apps/files_external/lib/config/configadapter.php
@@ -68,6 +68,7 @@ class ConfigAdapter implements IMountProvider {
$storage->setBackendOption('objectstore', new $objectClass($objectStore));
}
+ $storage->getAuthMechanism()->manipulateStorageConfig($storage);
$storage->getBackend()->manipulateStorageConfig($storage);
}
@@ -81,7 +82,9 @@ class ConfigAdapter implements IMountProvider {
$class = $storageConfig->getBackend()->getStorageClass();
$storage = new $class($storageConfig->getBackendOptions());
+ // auth mechanism should fire first
$storage = $storageConfig->getBackend()->wrapStorage($storage);
+ $storage = $storageConfig->getAuthMechanism()->wrapStorage($storage);
return $storage;
}