diff --git a/lib/strategy.js b/lib/strategy.js index 8ac16e4..a017c81 100644 --- a/lib/strategy.js +++ b/lib/strategy.js @@ -222,7 +222,7 @@ OAuth2Strategy.prototype.authenticate = function(req, options) { return this.error(ex); } } else { - var params = this.authorizationParams(options); + var params = this.authorizationParams(options, req); params.response_type = 'code'; if (callbackURL) { params.redirect_uri = callbackURL; } var scope = options.scope || this._scope; @@ -317,7 +317,7 @@ OAuth2Strategy.prototype.userProfile = function(accessToken, done) { * @return {Object} * @api protected */ -OAuth2Strategy.prototype.authorizationParams = function(options) { +OAuth2Strategy.prototype.authorizationParams = function(options, req) { return {}; };