summaryrefslogtreecommitdiff
path: root/actions/userauthorization.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-02 16:31:42 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-02 16:31:42 -0400
commit8d943248517edf692f95f983752dea11e12d4a4b (patch)
tree493da2f02fdbcbc6bedfcb1b084998316d605db9 /actions/userauthorization.php
parente103c8b6ea2d06cc15e1f8571936b6a2971fe4fa (diff)
debugging code for userauthorization
darcs-hash:20080602203142-84dde-6f68b40061d0af776d077be1b24b8adf84ee331b.gz
Diffstat (limited to 'actions/userauthorization.php')
-rw-r--r--actions/userauthorization.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/actions/userauthorization.php b/actions/userauthorization.php
index ee156bd79..617830e9a 100644
--- a/actions/userauthorization.php
+++ b/actions/userauthorization.php
@@ -28,10 +28,16 @@ class UserauthorizationAction extends Action {
} else {
try {
$req = $this->get_request();
+ if (!$req) {
+ common_server_error(_t('Cannot find request'));
+ }
+ common_debug('userauthorization.php - $req = "'.print_r($req,TRUE).'"');
$server = common_oauth_server();
$server->get_version($req);
$consumer = $server->get_consumer($req);
+ common_debug('userauthorization.php - $consumer = "'.print_r($consumer,TRUE).'"');
$token = $server->get_token($req, $consumer, "request");
+ common_debug('userauthorization.php - $token = "'.print_r($token,TRUE).'"');
$server->check_signature($req, $consumer, $token);
} catch (OAuthException $e) {
$this->clear_request();