Skip to content
Browse files

Pick out protocol params in single location.

  • Loading branch information...
1 parent 0331fdd commit a7cb5d1ba30489813c575ed8883d50c2867c18ff @jaredhanson committed Jun 6, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/passport-http-oauth/strategies/token.js
View
5 lib/passport-http-oauth/strategies/token.js
@@ -108,6 +108,8 @@ TokenStrategy.prototype.authenticate = function(req) {
var consumerKey = params['oauth_consumer_key']
, accessToken = params['oauth_token']
+ , signatureMethod = params['oauth_signature_method']
+ , signature = params['oauth_signature']
, version = params['oauth_version']
if (version && version !== '1.0') {
@@ -148,9 +150,6 @@ TokenStrategy.prototype.authenticate = function(req) {
, normalizedParams = utils.normalizeParams.apply(undefined, sources)
, base = utils.constructBaseString(req.method, normalizedURL, normalizedParams);
- var signatureMethod = params['oauth_signature_method']
- , signature = params['oauth_signature']
-
// TODO: Implement support for additional signature methods
// TODO: Implement options to enable/disable signature methods
if (signatureMethod == 'HMAC-SHA1') {

0 comments on commit a7cb5d1

Please sign in to comment.
Something went wrong with that request. Please try again.