function __construct($config, $auth = NULL)
 {
     parent::__construct($config, $auth);
     osapiLogger::setLevel(osapiLogger::INFO);
     osapiLogger::setAppender(new osapiFileAppender("data/osapi.log"));
     $host = getConfig($config, 'conext_host', TRUE);
     $key = getConfig($config, 'conext_key', TRUE);
     $secret = getConfig($config, 'conext_secret', TRUE);
     $provider = new osapiProvider("https://{$host}/oauth/request_token", "https://{$host}/oauth/authorize", "https://{$host}/oauth/access_token", "https://{$host}/social/rest", "https://{$host}/social/rpc", 'SURFconext', TRUE, NULL);
     $auth = new osapiOAuth2Legged($key, $secret, $this->auth->getUserId());
     $this->osapi = new osapi($provider, $auth);
 }
Beispiel #2
0
 public function _construct()
 {
     parent::__construct();
 }
Beispiel #3
0
 /**
  * Web Proxy policy constructor.
  */
 function __construct()
 {
     parent::__construct('web_proxy', array('web_proxy_plugin'));
 }
Beispiel #4
0
 /**
  * PPTP Server policy constructor.
  */
 function __construct()
 {
     parent::__construct('pptpd', array('pptpd_plugin'));
 }