Output a log message when issuing a request token

This commit is contained in:
Zach Copley 2010-10-12 12:25:34 -07:00
parent baa8ae778a
commit a77bc11326

View File

@ -100,6 +100,16 @@ class ApiOauthRequestTokenAction extends ApiOauthAction
// check signature and issue a new request token // check signature and issue a new request token
$token = $server->fetch_request_token($req); $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 // return token to the client
$this->showRequestToken($token); $this->showRequestToken($token);