fixed issue #64 w/ tests
This commit is contained in:
@ -189,11 +189,11 @@ exports.OAuth.prototype._createSignature= function(signatureBase, tokenSecret) {
|
||||
if( tokenSecret === undefined ) var tokenSecret= "";
|
||||
else tokenSecret= this._encodeData( tokenSecret );
|
||||
// consumerSecret is already encoded
|
||||
var key= this._consumerSecret + "&" + tokenSecret;
|
||||
var key= this._encodeData(this._consumerSecret) + "&" + this._encodeData(tokenSecret);
|
||||
|
||||
var hash= ""
|
||||
if( this._signatureMethod == "PLAINTEXT" ) {
|
||||
hash= this._encodeData(key);
|
||||
hash= key;
|
||||
}
|
||||
else {
|
||||
if( crypto.Hmac ) {
|
||||
|
Reference in New Issue
Block a user