Adding ability to specify a custom agent for OAuth2Strategy via customHeaders
We experienced an issue where we needed to adjust http request agent configurations but could not find anyway of configuring passport oauth2Strategy 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.
Coverage remained the same at 100.0% when pulling caa85171946a2fee312af5c49fb19a3b8bc335cc on kulkame:master into a02839afb8d15f7d283ae09167973e4d22e8faf8 on jaredhanson:master.
We are facing similar issue.. It would be great if this could be merged soon!
@jaredhanson When can we expect this to be merged?
+1
@kulkame if you make a PR against https://github.com/passport-next/passport-oauth2 is will get looked into.