]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
debugging code for userauthorization
authorEvan Prodromou <evan@prodromou.name>
Mon, 2 Jun 2008 20:31:42 +0000 (16:31 -0400)
committerEvan Prodromou <evan@prodromou.name>
Mon, 2 Jun 2008 20:31:42 +0000 (16:31 -0400)
darcs-hash:20080602203142-84dde-6f68b40061d0af776d077be1b24b8adf84ee331b.gz

actions/userauthorization.php

index ee156bd79eef606e7fc3465b1a4f1d4965767d5d..617830e9a6d5011f04e953354716342dd92e6c6c 100644 (file)
@@ -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();