passport-oauth2
passport-oauth2 copied to clipboard
pass options to authenticate
For a less than standard OAuth implementation, I needed an additional GET param added to the authorization url. After some pocking around, I found, that simply adding an options object to the passport.authenticate('oauth2', {options})
call, would be enough. But you don't pass them through to the oauth2 module. If I changed this return {};
to return options;
it would work.
Do you consider this a good idea?
Not quite sure why I won't get an answer here. Should I just open a pull request?
hi @joh-klein,
I think you just need to extend OAuth2Strategy class and override OAuth2Strategy.prototype.authorizationParams