예제 #1
0
 public function __construct()
 {
     parent::__construct();
     $recArr = $this->getProviderList();
     $this->akey = $recArr['key'];
     $this->skey = $recArr['value'];
 }
예제 #2
0
 public function __construct()
 {
     parent::__construct();
     $recArr = $this->getProviderList();
     $this->akey = $recArr['key'];
     $this->skey = $recArr['value'];
     $this->facebook = new FacebookApi(array('appId' => $this->akey, 'secret' => $this->skey, 'CallBack' => $this->callBack));
 }
예제 #3
0
 public function __construct()
 {
     parent::__construct();
     $recArr = $this->getProviderList();
     $this->sina_akey = $recArr['key'];
     $this->sina_skey = $recArr['value'];
     $this->sina = new SaeTOAuthV2($this->sina_akey, $this->sina_skey);
 }
예제 #4
0
 public function __construct()
 {
     parent::__construct();
     $recArr = $this->getProviderList();
     $this->akey = $recArr['key'];
     $this->skey = $recArr['value'];
     $this->google = new apiClient();
     $this->google->setClientId($recArr['key']);
     $this->google->setClientSecret($recArr['value']);
     $this->google->setRedirectUri($this->callBack);
 }
예제 #5
0
 public function __construct()
 {
     parent::__construct();
     $recArr = $this->getProviderList();
     $this->akey = $recArr['key'];
     $this->skey = $recArr['value'];
     $aliapy_config['partner'] = $recArr['key'];
     //安全检验码,以数字和字母组成的32位字符
     $aliapy_config['key'] = $recArr['value'];
     //页面跳转同步通知页面路径,要用 http://格式的完整路径,不允许加?id=123这类自定义参数
     //return_url的域名不能写成http://localhost/alipay.auth.authorize_php_utf8/return_url.php ,否则会导致return_url执行无效
     $aliapy_config['return_url'] = $this->callBack;
     //签名方式 不需修改
     $aliapy_config['sign_type'] = 'MD5';
     //字符编码格式 目前支持 gbk 或 utf-8
     $aliapy_config['input_charset'] = 'utf-8';
     //访问模式,根据自己的服务器是否支持ssl访问,若支持请选择https;若不支持请选择http
     $aliapy_config['transport'] = 'http';
     $aliapy_config['service'] = 'alipay.auth.authorize';
     $aliapy_config['target_service'] = 'user.auth.quick.login';
     $aliapy_config['type'] = 'get';
     $this->aliapy_config = $aliapy_config;
     $this->parameter = array("service" => "alipay.auth.authorize", "target_service" => 'user.auth.quick.login', "partner" => trim($this->aliapy_config['partner']), "_input_charset" => trim(strtolower($this->aliapy_config['input_charset'])), "return_url" => trim($this->aliapy_config['return_url']));
 }