summaryrefslogtreecommitdiff
path: root/server/core/Identity.php
diff options
context:
space:
mode:
Diffstat (limited to 'server/core/Identity.php')
-rw-r--r--server/core/Identity.php20
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;
+ }
+}