summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-10-12 12:25:34 -0700
committerZach Copley <zach@status.net>2010-10-12 12:25:34 -0700
commita77bc113269e88d264075d331570dccf662b9640 (patch)
tree162b4d78fa81b9814870e61c3c8d3c14a98b9c61 /actions
parentbaa8ae778a01326927394818335d410233d24c49 (diff)
Output a log message when issuing a request token
Diffstat (limited to 'actions')
-rw-r--r--actions/apioauthrequesttoken.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/actions/apioauthrequesttoken.php b/actions/apioauthrequesttoken.php
index 825460f93..478d2dbfc 100644
--- a/actions/apioauthrequesttoken.php
+++ b/actions/apioauthrequesttoken.php
@@ -100,6 +100,16 @@ class ApiOauthRequestTokenAction extends ApiOauthAction
// check signature and issue a new request token
$token = $server->fetch_request_token($req);
+ common_log(
+ LOG_INFO,
+ sprintf(
+ "API OAuth - Issued request token %s for consumer %s with oauth_callback %s",
+ $token->key,
+ $req->get_parameter('oauth_consumer_key'),
+ "'" . $req->get_parameter('oauth_callback') ."'"
+ )
+ );
+
// return token to the client
$this->showRequestToken($token);