From 3e849daf11ad3c30143f2903fb7b528ef1f7da14 Mon Sep 17 00:00:00 2001 From: Julien Lutran Date: Wed, 19 Feb 2020 11:23:51 +0100 Subject: Fix issues with Keystone auth v3 in files_external app Signed-off-by: Julien Lutran --- lib/private/Files/ObjectStore/SwiftFactory.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/private/Files/ObjectStore/SwiftFactory.php b/lib/private/Files/ObjectStore/SwiftFactory.php index 59446576400..7c8a1b995b4 100644 --- a/lib/private/Files/ObjectStore/SwiftFactory.php +++ b/lib/private/Files/ObjectStore/SwiftFactory.php @@ -119,6 +119,10 @@ class SwiftFactory { if (!isset($this->params['tenantName']) && isset($this->params['tenant'])) { $this->params['tenantName'] = $this->params['tenant']; } + if (isset($this->params['domain'])) { + $this->params['scope']['project']['name'] = $this->params['tenant']; + $this->params['scope']['project']['domain']['name'] = $this->params['domain']; + } $this->params = array_merge(self::DEFAULT_OPTIONS, $this->params); $cacheKey = $userName . '@' . $this->params['url'] . '/' . $this->params['container']; -- cgit v1.2.3