/** * Initialize the component. * * @param EAuth $component the component instance. * @param array $options properties initialization. */ public function init($component, $options = array()) { parent::init($component, $options); $this->auth = new EOAuthUserIdentity(array('scope' => $this->scope, 'key' => $this->key, 'secret' => $this->secret, 'provider' => $this->providerOptions)); // Try to restore access token and customer from session. $this->restoreCredentials(); }
/** * Initialize the component. * * @param EAuth $component the component instance. * @param array $options properties initialization. */ public function init($component, $options = array()) { parent::init($component, $options); $this->auth = Yii::app()->loid->load(); //$this->auth = new EOpenID(); }
public function init($component, $options = array()) { parent::init($component, $options); // Try to restore access token from session. $this->restoreAccessToken(); }
/** * Initialize the component. * * @param EAuth $component the component instance. * @param array $options properties initialization. */ public function init($component, $options = array()) { parent::init($component, $options); $this->auth = new EOAuthUserIdentity(array('scope' => $this->scope, 'key' => $this->key, 'secret' => $this->secret, 'provider' => $this->providerOptions)); }