public function before() { parent::before(); $this->_oauth = OAuth2_Provider::factory($this->request); if ($this->_oauth_verify) { $this->_oauth_verify_token(); } }
public function before() { parent::before(); // Load the cookie session $this->session = Session::instance('cookie'); // Get the name of the demo from the class name $provider = strtolower($this->api); // Load the provider $this->provider = OAuth2_Provider::factory($provider); // Load the client $this->client = OAuth2_Client::factory(Kohana::config("oauth.{$provider}")); if ($token = $this->session->get($this->key('access'))) { // Make the access token available $this->token = $token; } }
public function before() { parent::before(); $this->_oauth = OAuth2_Provider::factory($this->request); }
/** * @param $name Provider name * @param array Provider options * @return OAuth2_Provider */ public function provider($name, array $options = NULL) { return OAuth2_Provider::factory($name, $options); }