Test Authentification
This commit is contained in:
parent
78e6e5787c
commit
de1f302047
3 changed files with 55 additions and 35 deletions
14
server/init.php
Normal file → Executable file
14
server/init.php
Normal file → Executable file
|
@ -4,6 +4,8 @@
|
|||
require "vendor/autoload.php";
|
||||
include_once("core/LibOverride/Builder.php");
|
||||
include_once("core/LibOverride/OpenStack.php");
|
||||
include_once("core/LibOverride/Test.php");
|
||||
include_once("core/Identity.php");
|
||||
|
||||
//traitement requete, recuperation data
|
||||
if(isset($_POST["key"])){
|
||||
|
@ -54,7 +56,15 @@
|
|||
);
|
||||
}
|
||||
|
||||
$openstack_api = new OpenStack\OpenStack($Args);
|
||||
|
||||
$pluginApi = plugin_api::getInstance();
|
||||
|
||||
$openstack_api = new OpenStack\OpenStack($Args);
|
||||
$id = new identity($openstack_api, $pluginApi);
|
||||
|
||||
$token = $id->genToken();
|
||||
|
||||
$tmp = new genTokenOptions($Args, $token);
|
||||
$array = $tmp->getOptions();
|
||||
$openstack_api = new OpenStack\OpenStack($array);
|
||||
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue