summaryrefslogtreecommitdiff
path: root/server/init.php
diff options
context:
space:
mode:
authorEole <EoleDev@outlook.fr>2016-01-30 11:41:45 +0100
committerEole <EoleDev@outlook.fr>2016-01-30 11:41:45 +0100
commit78e6e5787ce2df4ae55f5b4d64c792b8f20696d7 (patch)
tree94b2293391e70350d7ebbaa99979d1dd7f292399 /server/init.php
parentba8bbc77fb302f95b2e508d1ff1203f451311bf4 (diff)
Begin of Identity Implementation, Begin of Token management for Identification
Diffstat (limited to 'server/init.php')
-rw-r--r--server/init.php29
1 files changed, 26 insertions, 3 deletions
diff --git a/server/init.php b/server/init.php
index ff7f90b..5b6a6c1 100644
--- a/server/init.php
+++ b/server/init.php
@@ -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();
?>