init() public method

Sets the default {@link redirectUrl} and {@link cancelUrl}.
public init ( EAuth $component, array $options = [] )
$component EAuth the component instance.
$options array properties initialization.
Beispiel #1
0
 /**
  * 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();
 }
Beispiel #3
0
 public function init($component, $options = array())
 {
     parent::init($component, $options);
     // Try to restore access token from session.
     $this->restoreAccessToken();
 }
Beispiel #4
0
 /**
  * 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));
 }