Add underlying http request agent configuration support to oauth2
We experienced an issue where we needed to adjust http request agent configurations but could not find anyway of configuring passport oauth2 to propagate those configurations to the underlying library. This PR should resolve that issue in a generic way that is hopefully applicable to future use cases as well.
Similar issue reported https://github.com/ciaranj/node-oauth/issues/329
This is an great solution and would help me out with an issue I faced with self signed certificates.
Please merge!
This helped me out too! Please merge!
When will this PR be merged? I am facing similar issue.
I don't quite understand, why doesn't 6baf574f8762232ee69a8d4e487db57e9215d614 satisfy your requirements?
@kulkame or @ciaranj can either of you please elaborate why one solution is better than the other? Hopefully in a way that everybody else can then use it?
@kulkame you may want to try submitting a patch against my fork: https://github.com/omouse/node-oauth-libre I merged a similar patch many months ago (related to Authorization header for oauth2)