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); }
public function _construct() { parent::__construct(); }
/** * Web Proxy policy constructor. */ function __construct() { parent::__construct('web_proxy', array('web_proxy_plugin')); }
/** * PPTP Server policy constructor. */ function __construct() { parent::__construct('pptpd', array('pptpd_plugin')); }