We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fef2bfa commit cd2de9fCopy full SHA for cd2de9f
lib/passport-http-oauth/strategies/consumer.js
@@ -298,8 +298,8 @@ ConsumerStrategy.prototype.authenticate = function(req) {
298
}
299
300
} else if (signatureMethod === 'HMAC-SHA256') {
301
- var key = consumerSecret + '&';
302
- if (tokenSecret) { key += tokenSecret; }
+ var key = utils.encode(consumerSecret) + '&';
+ if (tokenSecret) { key += utils.encode(tokenSecret); }
303
var computedSignature = utils.hmacsha256(key, base);
304
305
if (signature !== computedSignature) {
0 commit comments