more debug code

darcs-hash:20080602203802-84dde-f7f237da7c86fe38fd67629d0599c48929dfa619.gz
This commit is contained in:
Evan Prodromou 2008-06-02 16:38:02 -04:00
parent 8d94324851
commit 67264e038c

View File

@ -27,13 +27,16 @@ class UserauthorizationAction extends Action {
$this->send_authorization(); $this->send_authorization();
} else { } else {
try { try {
common_debug('userauthorization.php - fetching request');
$req = $this->get_request(); $req = $this->get_request();
if (!$req) { if (!$req) {
common_server_error(_t('Cannot find request')); common_server_error(_t('Cannot find request'));
} }
common_debug('userauthorization.php - $req = "'.print_r($req,TRUE).'"'); common_debug('userauthorization.php - $req = "'.print_r($req,TRUE).'"');
$server = common_oauth_server(); $server = common_oauth_server();
common_debug('userauthorization.php - checking request version');
$server->get_version($req); $server->get_version($req);
common_debug('userauthorization.php - getting the consumer');
$consumer = $server->get_consumer($req); $consumer = $server->get_consumer($req);
common_debug('userauthorization.php - $consumer = "'.print_r($consumer,TRUE).'"'); common_debug('userauthorization.php - $consumer = "'.print_r($consumer,TRUE).'"');
$token = $server->get_token($req, $consumer, "request"); $token = $server->get_token($req, $consumer, "request");