/** * @inheritdoc */ public function init() { parent::init(); if ($this->scope === null) { $this->scope = implode(' ', ['snsapi_login']); } }
/** * @inheritdoc */ public function init() { parent::init(); if ($this->scope === null) { $this->scope = implode(' ', ['profile', 'email']); } }
public function init() { parent::init(); if ($this->scope === null) { $this->scope = implode(',', ['get_user_info']); } }
/** * @inheritdoc */ public function init() { parent::init(); if ($this->scope === null) { $this->scope = implode(' ', ['r_basicprofile', 'r_emailaddress']); } }
/** * @inheritdoc */ public function init() { parent::init(); if ($this->scope === null) { $this->scope = 'user'; } }
/** * @inheritdoc */ public function init() { parent::init(); if ($this->scope === null) { $this->scope = implode(' ', ['user', 'user:email']); } }
/** * @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']); } }
/** * @inheritdoc */ public function init() { parent::init(); if ($this->scope === null) { $this->scope = implode(',', ['wl.basic', 'wl.emails']); } }
/** * @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']); } }
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(); }
/** * 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); } } }
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); }