Skip to content

"Authorization" header in OAuth 2.0 protocol #94

Closed
wants to merge 1 commit into from
View
1 lib/oauth2.js
@@ -44,6 +44,7 @@ exports.OAuth2.prototype._request= function(method, url, headers, post_body, acc
if( access_token ) {
if( ! parsedUrl.query ) parsedUrl.query= {};
parsedUrl.query[this._accessTokenName]= access_token;
+ realHeaders['Authorization']="OAuth2 " + access_token;
}
var result= "";
Something went wrong with that request. Please try again.