Implementation Token Management End

This commit is contained in:
Eole 2016-01-31 12:22:51 +01:00
parent 4c0fb05590
commit f10df7fee1

View file

@ -57,8 +57,7 @@ class genTokenOptions
$options['region'] = 'RegionOne';
list($token, $baseUrl) = $options['identityService']->authenticate($options);
//var_dump($token);
//$stack = HandlerStack::create();
$this->stack->push(Middleware::authHandler($options['authHandler'], $token));
$this->addDebugMiddleware($options, $this->stack);
@ -79,13 +78,9 @@ class genTokenOptions
$options['catalogType'] = 'compute';
$options['region'] = 'RegionOne';
//list($token, $baseUrl) = $options['identityService']->authenticate($options);
$this->backup['Compute'] = unserialize($opt);
//var_dump($this->backup['Compute']);
$token = $this->unserializeToken($this->backup['Compute']['token']);
$baseUrl = $this->backup['Compute']['baseUrl'];
//$stack = HandlerStack::create();
$this->stack->push(Middleware::authHandler($options['authHandler'], $token));