add scope as an allowed oauth param so we can support google
This commit is contained in:
parent
d53cb01282
commit
bd54d3f899
@ -202,7 +202,7 @@ exports.OAuth.prototype._performSecureRequest= function( oauth_token, oauth_toke
|
||||
for( var i= 0 ; i < orderedParameters.length; i++) {
|
||||
// Whilst the all the parameters should be included within the signature, only the oauth_ arguments
|
||||
// should appear within the authorization header.
|
||||
if( orderedParameters[i][0].match('^oauth_') == "oauth_") {
|
||||
if( orderedParameters[i][0].match('^oauth_') == "oauth_" || orderedParameters[i][0] === 'scope') {
|
||||
authHeader+= this._encodeData(orderedParameters[i][0])+"=\""+ this._encodeData(orderedParameters[i][1])+"\",";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user