Implementation Token Multi Service ENd

This commit is contained in:
Eole 2016-01-31 14:34:43 +01:00
parent 3914858d7a
commit 4f062230bc
3 changed files with 26 additions and 19 deletions

View file

@ -56,9 +56,11 @@ class genTokenOptions
$options['catalogType'] = 'false';
$options['region'] = 'RegionOne';
list($token, $baseUrl) = $options['identityService']->authenticate($options);
$this->stack->push(Middleware::authHandler($options['authHandler'], $token));
//list($token, $baseUrl) = $options['identityService']->authenticate($options);
$baseUrl = $options["authUrl"];
$token = $options['identityService']->generateToken($options);
$this->stack->push(Middleware::authHandler($options['authHandler'], $token));
$this->addDebugMiddleware($options, $this->stack);
@ -227,8 +229,8 @@ class genTokenOptions
return serialize($this->backup[$service]);
}
public function getOptionsCompute(){
return $this->optionsGlobal['Compute'];
public function getOptions($service){
return $this->optionsGlobal[$service];
}
private function serializeToken($token){