First OAth2 Functional Implementation
This commit is contained in:
@@ -4,6 +4,7 @@ namespace ProcessMaker;
|
||||
class Api
|
||||
{
|
||||
private static $workspace;
|
||||
private static $userId;
|
||||
|
||||
public function __costruct()
|
||||
{
|
||||
@@ -19,5 +20,17 @@ class Api
|
||||
{
|
||||
return self::$workspace;
|
||||
}
|
||||
|
||||
public static function setUserId($userId)
|
||||
{
|
||||
self::$userId = $userId;
|
||||
}
|
||||
|
||||
public function getUserId()
|
||||
{
|
||||
//return self::$userId;
|
||||
|
||||
return \Api\OAuth2\Server::getUserId();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user