Skip to content

Commit 19e6d45

Browse files
committed
Remove 1.0A as an accepted version.
1 parent ab8f30f commit 19e6d45

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
@@ -191,7 +191,7 @@ ConsumerStrategy.prototype.authenticate = function(req) {
191191
, verifier = params['oauth_verifier']
192192
, version = params['oauth_version']
193193

194-
if (version && (version !== '1.0' && version.toUpperCase() !== '1.0A')) {
194+
if (version && version !== '1.0') {
195195
return this.fail(this._challenge('version_rejected'), 400);
196196
}
197197

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ TokenStrategy.prototype.authenticate = function(req) {
182182
, nonce = params['oauth_nonce']
183183
, version = params['oauth_version']
184184

185-
if (version && (version !== '1.0' && version.toUpperCase() !== '1.0A')) {
185+
if (version && version !== '1.0') {
186186
return this.fail(this._challenge('version_rejected'), 400);
187187
}
188188

0 commit comments

Comments
 (0)