Ejegg has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/168417

Change subject: Logging to debug OAuth request signing
......................................................................

Logging to debug OAuth request signing

Change-Id: I0da1ee361714a1a5f993cbe77a191c9892379fc5
---
M oauth/lib/oauth.js
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/dash/node_modules 
refs/changes/17/168417/1

diff --git a/oauth/lib/oauth.js b/oauth/lib/oauth.js
index 50dccf9..68afcfd 100644
--- a/oauth/lib/oauth.js
+++ b/oauth/lib/oauth.js
@@ -4,7 +4,8 @@
     https= require('https'),
     URL= require('url'),
     querystring= require('querystring'),
-    OAuthUtils= require('./_utils');
+    OAuthUtils= require('./_utils'),
+    syslog= require( 'node-syslog' );
 
 exports.OAuth= function(requestUrl, accessUrl, consumerKey, consumerSecret, 
version, authorize_callback, signatureMethod, nonceSize, customHeaders) {
   this._isEcho = false;
@@ -197,6 +198,7 @@
 }
 
 exports.OAuth.prototype._createSignature= function(signatureBase, tokenSecret) 
{
+   syslog.log( syslog.LOG_DEBUG, "Signing OAuth request - base string is '" + 
signatureBase + "'" );
    if( tokenSecret === undefined ) var tokenSecret= "";
    else tokenSecret= this._encodeData( tokenSecret );
    // consumerSecret is already encoded

-- 
To view, visit https://gerrit.wikimedia.org/r/168417
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0da1ee361714a1a5f993cbe77a191c9892379fc5
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/dash/node_modules
Gerrit-Branch: master
Gerrit-Owner: Ejegg <eeggles...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to