public function __construct($strategy, $env)
 {
     parent::__construct($strategy, $env);
     $parsed = parse_url($this->env['host']);
     $this->openid = new LightOpenID($parsed['host']);
     $this->openid->required = $this->strategy['required'];
     $this->openid->optional = $this->strategy['optional'];
 }
 public function __construct($strategy, $env)
 {
     parent::__construct($strategy, $env);
     $this->strategy['consumer_key'] = $this->strategy['consumer_key'];
     $this->strategy['consumer_secret'] = $this->strategy['consumer_secret'];
     require dirname(__FILE__) . '/../../Vendor/tmhOAuth/tmhOAuth.php';
     $this->tmhOAuth = new tmhOAuth($this->strategy);
 }
示例#3
0
 /**
  * Request
  */
 public function __construct($strategy, $env)
 {
     parent::__construct($strategy, $env);
     if (!session_id()) {
         session_start();
     }
     require dirname(__FILE__) . '/Vendor/YahooOAuthApplication.class.php';
     $this->yauth = new YahooOAuthApplication($this->strategy['key'], $this->strategy['secret'], $this->strategy['appid']);
 }
 public function __construct($strategy, $env)
 {
     parent::__construct($strategy, $env);
     $parsed = parse_url($this->env['host']);
     require dirname(__FILE__) . '/Vendor/lightopenid/openid.php';
     $this->openid = new LightOpenID($parsed['host']);
     $this->openid->required = $this->strategy['required'];
     $this->openid->optional = $this->strategy['optional'];
 }
 /**
  * Constructor, change defaults array for get online url
  * 
  * @param array $strategy Strategy-specific configuration
  * @param array $env Safe env values from Opauth, with critical parameters stripped out
  */
 public function __construct($strategy, $env)
 {
     parent::__construct($strategy, $env);
     $this->strategy['redirect_uri'] = get_site_url() . $this->strategy['redirect_uri'];
     // Login Cidadao validate url, so no child blog url here
     /*$redirect_uri = network_site_url();
     		$redirect_uri = rtrim($redirect_uri,"/");
     		$this->strategy['redirect_uri'] = $redirect_uri.$this->strategy['redirect_uri'];*/
 }
示例#6
0
 public function __construct($strategy, $env)
 {
     parent::__construct($strategy, $env);
     $this->strategy['consumer_key'] = $this->strategy['key'];
     $this->strategy['consumer_secret'] = $this->strategy['secret'];
     $this->strategy['request_token_url'] = $this->strategy['base_url'] . $this->strategy['request_token_path'];
     $this->strategy['authorize_url'] = $this->strategy['base_url'] . $this->strategy['authorize_path'];
     $this->strategy['access_token_url'] = $this->strategy['base_url'] . $this->strategy['access_token_path'];
     require dirname(__FILE__) . '/Vendor/OAuthSimple.php';
     $this->oauth = new OAuthSimple($this->strategy['consumer_key'], $this->strategy['consumer_secret']);
 }
示例#7
0
 public function __construct($strategy, $env)
 {
     parent::__construct($strategy, $env);
     $this->strategy['strategy_callback_url'] = $this->strategy['callback_url'];
     $this->openid = new LightOpenID($this->strategy['domain']);
 }
 /**
  * Setup strategy
  *
  * @since 1.0
  * @param array $strategy Strategy-specific configuration
  * @param array $env Safe env values from Opauth, with critical parameters stripped out
  */
 public function __construct($strategy, $env)
 {
     parent::__construct($strategy, $env);
     $this->api_endpoint = 'live' == $this->strategy['environment'] ? self::LIVE_API_ENDPOINT : self::SANDBOX_API_ENDPOINT;
     $this->auth_endpoint = 'live' == $this->strategy['environment'] ? self::LIVE_AUTH_ENDPOINT : self::SANDBOX_AUTH_ENDPOINT;
 }
示例#9
0
 public function __construct($strategy, $env)
 {
     $this->defaults = (require dirname(__FILE__) . '/defaults.config.php');
     parent::__construct($strategy, $env);
 }