Begin of Identity Implementation, Begin of Token management for Identification
This commit is contained in:
parent
ba8bbc77fb
commit
78e6e5787c
8 changed files with 335 additions and 9 deletions
|
@ -2,7 +2,9 @@
|
|||
include_once("config.inc.php");
|
||||
include_once("core/Plugin_Api.php");
|
||||
require "vendor/autoload.php";
|
||||
|
||||
include_once("core/LibOverride/Builder.php");
|
||||
include_once("core/LibOverride/OpenStack.php");
|
||||
|
||||
//traitement requete, recuperation data
|
||||
if(isset($_POST["key"])){
|
||||
//recuperation des donnes sauvegardes
|
||||
|
@ -27,11 +29,32 @@
|
|||
"name" => "Default")
|
||||
)
|
||||
),
|
||||
"authUrl" => $urlAuth
|
||||
"authUrl" => $config["urlAuth"]
|
||||
);
|
||||
} else {
|
||||
$user = "admin";
|
||||
$password = "ae5or6cn";
|
||||
$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"]
|
||||
);
|
||||
}
|
||||
|
||||
$openstack_api = new OpenStack\OpenStack($Args);
|
||||
|
||||
|
||||
$pluginApi = plugin_api::getInstance();
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue