File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
lib/passport-http-oauth/strategies Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ ConsumerStrategy.prototype.authenticate = function(req) {
290290
291291 if ( signatureMethod == 'HMAC-SHA1' ) {
292292 var key = consumerSecret + '&' ;
293- if ( tokenSecret ) { key += tokenSecret ; }
293+ if ( tokenSecret ) { key += utils . encode ( tokenSecret ) ; }
294294 var computedSignature = utils . hmacsha1 ( key , base ) ;
295295
296296 if ( signature !== computedSignature ) {
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ TokenStrategy.prototype.authenticate = function(req) {
222222
223223 if ( signatureMethod == 'HMAC-SHA1' ) {
224224 var key = consumerSecret + '&' ;
225- if ( tokenSecret ) { key += tokenSecret ; }
225+ if ( tokenSecret ) { key += utils . encode ( tokenSecret ) ; }
226226 var computedSignature = utils . hmacsha1 ( key , base ) ;
227227
228228 if ( signature !== computedSignature ) {
You can’t perform that action at this time.
0 commit comments