Skip to content

Commit a847812

Browse files
committed
1.0A should be recognized as a valid version
1 parent e48233e commit a847812

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/passport-http-oauth/strategies/consumer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

lib/passport-http-oauth/strategies/token.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)