示例#1
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if ($this->scope === null) {
         $this->scope = implode(' ', ['snsapi_login']);
     }
 }
示例#2
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if ($this->scope === null) {
         $this->scope = implode(' ', ['profile', 'email']);
     }
 }
示例#3
0
文件: QqOAuth.php 项目: zhangsong/yii
 public function init()
 {
     parent::init();
     if ($this->scope === null) {
         $this->scope = implode(',', ['get_user_info']);
     }
 }
示例#4
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if ($this->scope === null) {
         $this->scope = implode(' ', ['r_basicprofile', 'r_emailaddress']);
     }
 }
示例#5
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if ($this->scope === null) {
         $this->scope = 'user';
     }
 }
示例#6
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if ($this->scope === null) {
         $this->scope = implode(' ', ['user', 'user:email']);
     }
 }
示例#7
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if ($this->scope === null) {
         $this->scope = implode(' ', ['https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/userinfo.email']);
     }
 }
示例#8
0
文件: Live.php 项目: howq/yii2
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if ($this->scope === null) {
         $this->scope = implode(',', ['wl.basic', 'wl.emails']);
     }
 }
示例#9
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if ($this->scope === null) {
         //$this->scope = implode(',', $this->type == 'mp' ? ['snsapi_userinfo',] : ['snsapi_login']);
         $this->scope = implode(',', ['snsapi_login']);
     }
 }
示例#10
0
 public function init()
 {
     if ($this->debug) {
         $this->tokenUrl = self::URI_SANDBOX . $this->tokenUrl;
         $this->authUrl = self::URI_AUTHORIZE_SANDBOX . $this->authUrl;
     } else {
         $this->tokenUrl = self::URI_LIVE . $this->tokenUrl;
         $this->authUrl = self::URI_AUTHORIZE_LIVE . $this->authUrl;
     }
     return parent::init();
 }
示例#11
0
 /**
  * Inits Urls based on $site
  */
 public function init()
 {
     parent::init();
     if (!$this->site) {
         $this->site = 'hi3a.hipanel.com';
     }
     if (strpos($this->site, '://') === false) {
         $this->site = 'https://' . $this->site;
     }
     $defaults = ['authUrl' => 'oauth/authorize', 'tokenUrl' => 'oauth/token', 'apiBaseUrl' => 'api'];
     foreach ($defaults as $k => $v) {
         if (!$this->{$k}) {
             $this->{$k} = $this->buildUrl($v);
         }
     }
 }
示例#12
0
 public function init()
 {
     parent::init();
     JWT::$leeway = $this->leeway;
     self::$_instance = $this;
 }
 /**
  * Initialize this OAuth component
  */
 public function init()
 {
     parent::init();
     $view = Yii::$app->getView();
     AuthChoiceStyleAsset::register($view);
 }