Open piyushsmantri opened 4 years ago
Git clone the whole repo and import it instead of the npm package. In lib/strategy.js on line 414 do this from your code
const oauth2Client = new OAuth2(config.clientID, config.clientSecret,
'', config.authorizationURL, config.tokenURL);
oauth2Client.setAgent(httpsProxyAgent)
return oauth2Client
}```
I am trying to perform openid authentication behind a corporate proxy, and for that, I need to set the proxy options for the agent, similar to the following:
I cannot perform this unless the ._oauth2 property is exposed. Or is there any other way to configure the proxy options?