$user = "******";
$password = "******";
$project = "admin";
$Args = array("user" => array("name" => $user, "password" => $password, "domain" => array("name" => "Default")), "scope" => array("project" => array("name" => $project, "domain" => array("name" => "Default"))), "authUrl" => $config["urlAuth"]);
$genOptions = new genTokenOptions($Args);
$genOptions->genIdentityToken();
$genOptions->genComputeToken();
$genOptions->genNetworkToken();
$genOptions->genImageToken();
$backCompute = $genOptions->getBackup("Compute");
$backIdentity = $genOptions->getBackup("Identity");
$backNetwork = $genOptions->getBackup("Network");
$backImage = $genOptions->getBackup("Image");
$openstack_api = new OpenStack\OpenStack([]);
$newGenOptions = new genTokenOptions($Args);
$newGenOptions->loadIdentityBackup($backIdentity);
$newGenOptions->loadComputeBackup($backCompute);
$newGenOptions->loadImageBackup($backImage);
$newGenOptions->loadNetworkBackup($backNetwork);
$optionsCompute = $newGenOptions->getOptions("Compute");
$optionsIdentity = $newGenOptions->getOptions("Identity");
$optionsNetwork = $newGenOptions->getOptions("Network");
$optionsImage = $newGenOptions->getOptions("Image");
$identityTest = $openstack_api->identityV3($optionsIdentity);
$computeTest = $openstack_api->computeV2($optionsCompute);
$networkTest = $openstack_api->networkingV2($optionsNetwork);
$imageTest = $openstack_api->imagesV2($optionsImage);
$domainsTest = $identityTest->listDomains();
echo "Identity Test, List Domains </br>";
foreach ($domainsTest as $domain) {
    echo $domain->id;