Closed oussamaABID closed 6 years ago
You might find some information in https://github.com/jaredhanson/passport-oauth2/issues/59 and this Stackoverflow question.
thx for help daffl, so i need add proxy in Strategy to override this._oauth2._agent
const FacebookStrategy = require('passport-facebook');
var HttpsProxyAgent = require('https-proxy-agent');
const proxy = {host:'http://proxy.fr',port:8080};
var agent = new HttpsProxyAgent(proxy);
FacebookStrategy._oauth2._agent = agent;
but my _oauth2
is not accessible :(
i check code of'passport-facebook'
, to find how to do it :)
You do have access to FacebookStrategy
in src/authentication.js
.
Closing assuming that this has been solved.
sorry finaly i add proxy in my IDE . it's global setting Visual studio Code.
Note: Facebook Strategy work with real ip. localhost not working when i use proxy.
hey
how to set company proxy for all feathers authnetication external call Example : when i call
/auth/<provider>
to logIn, how set proxy in feathers app, when this excute process call provider thx sorry for my english