diff options
Diffstat (limited to 'server/core/Identity.php')
| -rw-r--r-- | server/core/Identity.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/server/core/Identity.php b/server/core/Identity.php new file mode 100644 index 0000000..343ed15 --- /dev/null +++ b/server/core/Identity.php @@ -0,0 +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; + } +} |
