Fix Swift legacy auth mechanism fallback
This commit is contained in:
parent
e33d7b34fa
commit
442f5269ef
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class Swift extends Backend {
|
|||
->setDependencyCheck('\OC\Files\Storage\Swift::checkDependencies')
|
||||
->addAuthScheme(AuthMechanism::SCHEME_OPENSTACK)
|
||||
->setLegacyAuthMechanismCallback(function(array $params) use ($openstackAuth, $rackspaceAuth) {
|
||||
if (isset($params['key'])) {
|
||||
if (isset($params['options']['key']) && $params['options']['key']) {
|
||||
return $rackspaceAuth;
|
||||
}
|
||||
return $openstackAuth;
|
||||
|
|
Loading…
Reference in a new issue