|
|
@ -108,6 +108,10 @@ class SwiftFactory { |
|
|
|
]); |
|
|
|
]); |
|
|
|
|
|
|
|
|
|
|
|
if (isset($this->params['user']) && isset($this->params['user']['name'])) { |
|
|
|
if (isset($this->params['user']) && isset($this->params['user']['name'])) { |
|
|
|
|
|
|
|
if (!isset($this->params['scope'])) { |
|
|
|
|
|
|
|
throw new StorageAuthException('Scope has to be defined for V3 requests'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return $this->auth(IdentityV3Service::factory($httpClient), $cacheKey); |
|
|
|
return $this->auth(IdentityV3Service::factory($httpClient), $cacheKey); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return $this->auth(IdentityV2Service::factory($httpClient), $cacheKey); |
|
|
|
return $this->auth(IdentityV2Service::factory($httpClient), $cacheKey); |
|
|
|