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 @@ -188,7 +188,7 @@ ConsumerStrategy.prototype.authenticate = function(req) {
188188 , verifier = params [ 'oauth_verifier' ]
189189 , version = params [ 'oauth_version' ]
190190
191- if ( version && version !== '1.0' ) {
191+ if ( version && ( version !== '1.0' && version . toUpperCase ( ) !== '1.0A' ) ) {
192192 return this . fail ( this . _challenge ( 'version_rejected' ) , 400 ) ;
193193 }
194194
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ TokenStrategy.prototype.authenticate = function(req) {
179179 , nonce = params [ 'oauth_nonce' ]
180180 , version = params [ 'oauth_version' ]
181181
182- if ( version && version !== '1.0' ) {
182+ if ( version && ( version !== '1.0' && version . toUpperCase ( ) !== '1.0A' ) ) {
183183 return this . fail ( this . _challenge ( 'version_rejected' ) , 400 ) ;
184184 }
185185
You can’t perform that action at this time.
0 commit comments