Permalink
Browse files

Merge pull request #2 from veewee/master

optional oauth_callback parameter
  • Loading branch information...
2 parents 3d1e697 + 66f8cd6 commit ec2c5c54e2ba570e14bcd37af153133f05a12694 @smalyshev committed Apr 6, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 Zend/Oauth/Provider.php
View
@@ -50,6 +50,7 @@ class Zend_Oauth_Provider
public $consumer_key;
public $consumer_secret;
public $verifier;
+ public $callback;
protected $problem;
@@ -306,6 +307,10 @@ public function checkOAuthRequest(Zend_Uri_Http $url = null, $params = array())
$this->timestamp = $params['oauth_timestamp'];
$this->nonce = $params['oauth_nonce'];
$this->consumer_key = $params['oauth_consumer_key'];
+
+ if (isset($params['oauth_callback'])) {
+ $this->callback = $params['oauth_callback'];
+ }
if(!is_callable($this->nonceHandler)) {
throw new Zend_Oauth_Exception("Nonce handler not callable", self::BAD_NONCE);

0 comments on commit ec2c5c5

Please sign in to comment.