diff options
| author | Eole <EoleDev@outlook.fr> | 2016-01-30 11:41:45 +0100 |
|---|---|---|
| committer | Eole <EoleDev@outlook.fr> | 2016-01-30 11:41:45 +0100 |
| commit | 78e6e5787ce2df4ae55f5b4d64c792b8f20696d7 (patch) | |
| tree | 94b2293391e70350d7ebbaa99979d1dd7f292399 /server/core/Identity.php | |
| parent | ba8bbc77fb302f95b2e508d1ff1203f451311bf4 (diff) | |
Begin of Identity Implementation, Begin of Token management for Identification
Diffstat (limited to 'server/core/Identity.php')
| -rw-r--r-- | server/core/Identity.php | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/server/core/Identity.php b/server/core/Identity.php index 8d1c8b6..343ed15 100644 --- a/server/core/Identity.php +++ b/server/core/Identity.php @@ -1 +1,19 @@ - +<?php + +class identity { + + protected $oidentity; + + public function __construct($ostack, $apiP){ + + $this->oidentity = $ostack->identityV3(); + $this->plugins = $apiP; + + } + + public function genToken(){ + global $Args; + $token = $this->oidentity->generateToken($Args); + return $token; + } +} |
