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:
parent
3bb793b6a7
commit
118cb7df1a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue