Request Analyse reviewed, Server Initialisation Reviewed, Core Class Interface Created, App created

This commit is contained in:
EoleDev 2016-02-05 00:07:31 +01:00
parent b39f5c1cd4
commit c2a5b1880c
6 changed files with 147 additions and 83 deletions

27
server/core/Identity.php Normal file → Executable file
View file

@ -1,19 +1,28 @@
<?php
class identity {
class identity implements Core{
protected $oidentity;
protected $app;
protected $libClass;
protected $action;
public function __construct($ostack, $apiP){
public function __construct($app){
$this->oidentity = $ostack->identityV3();
$this->plugins = $apiP;
$this->app = $app;
if($app->getOptions("Identity"))
$this->libClass = $app->getLibClass("Identity");
}
public function action($action){
//To be Complete
}
public function genToken(){
global $Args;
$token = $this->oidentity->generateToken($Args);
return $token;
}
//To be Complete
}
}