From 118cb7df1a906ce003fd80c1d64b357f45afcf02 Mon Sep 17 00:00:00 2001 From: Robin McCorkell Date: Wed, 19 Aug 2015 14:40:20 +0100 Subject: [PATCH] Allow builtin auth mechanism to be overridden The builtin mechanism is used exclusively for legacy external storages, which when upgraded to the new registration need to fallback to the defined legacy authentication mechanism instead. --- apps/files_external/service/storagesservice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_external/service/storagesservice.php b/apps/files_external/service/storagesservice.php index e89af6bc756..f655d990454 100644 --- a/apps/files_external/service/storagesservice.php +++ b/apps/files_external/service/storagesservice.php @@ -87,7 +87,7 @@ abstract class StoragesService { } $storageConfig->setBackend($backend); - if (isset($storageOptions['authMechanism'])) { + if (isset($storageOptions['authMechanism']) && $storageOptions['authMechanism'] !== 'builtin::builtin') { $authMechanism = $this->backendService->getAuthMechanism($storageOptions['authMechanism']); } else { $authMechanism = $backend->getLegacyAuthMechanism($storageOptions);