]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apioauthrequesttoken.php
Output a log message when issuing a request token
[quix0rs-gnu-social.git] / actions / apioauthrequesttoken.php
index 825460f93c72fbcc2acb82c253eaea4645cdea3f..478d2dbfc433c4e152b9f0f6626c5dabcd0b384e 100644 (file)
@@ -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);