Skip to content

Commit

Permalink
Merge pull request #2 from jnorberg/master
Browse files Browse the repository at this point in the history
Passing clientSecret when initializing OAuth2 to be more compatible with RFC
  • Loading branch information
leftmostcat committed May 28, 2016
2 parents af15f0d + 5fe8454 commit b461e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function PasswordGrantStrategy(options, verify) {
this.name = 'password-grant';
this._verify = verify;

this._oauth2 = new OAuth2(options.clientID, '', '', '', options.tokenURL, options.customHeaders);
this._oauth2 = new OAuth2(options.clientID, options.clientSecret, '', '', options.tokenURL, options.customHeaders);

this._passReqToCallback = options.passReqToCallback;
this._skipUserProfile = (options.skipUserProfile === undefined) ? false : options.skipUserProfile;
Expand Down

0 comments on commit b461e43

Please sign in to comment.