Commit 6bdfc3f4 authored by Nicolas Steinmetz's avatar Nicolas Steinmetz

nextcloud: follow-up on file with v 18.0.8

parent c897debc
Pipeline #1313 passed with stage
in 2 minutes and 7 seconds
......@@ -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'];
......@@ -131,7 +135,8 @@ class SwiftFactory {
]);
if (isset($this->params['user']) && is_array($this->params['user']) && isset($this->params['user']['name'])) {
#if (!isset($this->params['scope'])) {
# Commented for OVH Integration
# if (!isset($this->params['scope'])) {
# throw new StorageAuthException('Scope has to be defined for V3 requests');
#}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment