Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
Pass Basic Authorization header to OAuth2 access token request
Browse files Browse the repository at this point in the history
  • Loading branch information
lexi-lambda committed Oct 13, 2016
1 parent ec6a1b2 commit b75dd32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/oauth2.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ exports.OAuth2.prototype.getOAuthAccessToken= function(code, params, callback) {

var post_data= querystring.stringify( params );
var post_headers= {
'Content-Type': 'application/x-www-form-urlencoded'
'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': 'Basic ' + new Buffer(this._clientId + ':' + this._clientSecret).toString('base64')
};


Expand Down

0 comments on commit b75dd32

Please sign in to comment.