Example #1
0
 function __construct()
 {
     parent::__construct();
     $this->authorize(false, 'ADMIN', 'CLIENT');
     $this->httpStatus = APIController::HTTP_INTERNAL_SERVER_ERROR;
     $this->responseObj = array($this->config->item('rest_message_field_name') => null);
 }
Example #2
0
 function __construct()
 {
     parent::__construct();
     $this->authorize(true, 'ADMIN');
     $this->httpStatus = APIController::HTTP_UNAUTHORIZED;
     $this->responseObj = array($this->config->item('rest_message_field_name') => null);
 }
 function __construct()
 {
     parent::__construct();
     $dsn = 'mysql:host=' . MYSQL_SERVER . ';dbname=' . MYSQL_DB . ';charset=utf8';
     $this->storage = new \API\Middleware\SSCOauthStoragePDO(array('dsn' => $dsn, 'username' => MYSQL_USER, 'password' => MYSQL_PW));
     $this->server = new \OAuth2_Server($this->storage);
     $this->server->addGrantType(new \API\Middleware\SSC_OAuth2_GrantType_UserCredentials($this->storage));
     $this->server->addGrantType(new \API\Middleware\SSC_OAuth2_GrantType_ClientCredentials($this->storage));
 }
 public function __construct($appName, IRequest $request, Folder $userFolder)
 {
     parent::__construct($appName, $request);
     $this->userFolder = $userFolder;
 }
Example #5
0
 function __construct($merge = false)
 {
     parent::__construct($merge);
 }
Example #6
0
 function __construct()
 {
     parent::__construct();
     $this->httpStatus = APIController::HTTP_UNAUTHORIZED;
     $this->responseObj = array($this->config->item('rest_message_field_name') => null, 'loggedIn' => false);
 }
 function __construct()
 {
     parent::__construct();
 }