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.
This commit is contained in:
Robin McCorkell 2015-08-19 14:40:20 +01:00
parent 3bb793b6a7
commit 118cb7df1a
1 changed files with 1 additions and 1 deletions

View File

@ -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);