예제 #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
파일: GitHub.php 프로젝트: sciurodont/yii2
 /**
  * @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
파일: PayPal.php 프로젝트: lzpfmh/dotplant2
 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);
 }