jaredhanson / passport-oauth2

OAuth 2.0 authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-oauth2/?utm_source=github&utm_medium=referral&utm_campaign=passport-oauth2&utm_content=about
MIT License
607 stars 343 forks source link

Configure Client Authentication Method #147

Open tadaoshimura opened 3 years ago

tadaoshimura commented 3 years ago

Is there a way to configure the client authentication method? It seems to be defaulted to client_secret_post but I would like to change it to client_secret_basic.

jaredhanson commented 3 years ago

There currently is not, no. I would be willing to accept a pull request that implemented this functionality. It would also required a corresponding pull request to the underlying oauth dependency.

For anyone willing to take this on, looking at passport-openidconnect PR #54 can serve as a starting point. That PR implemented most of this functionality, albeit in a way that was too invasive (and potentially brittle) to merge.