Hello,
I’m struggling with the authorization via OAuth as described in the Flux prototype installation instructions (https://github.com/eclipse/flux/blob/master/README.md#authenticating-the-web-client)
and hope that someone can help me with this issue.
I have a Windows 7 64bit machine and can run the prototype with the
defaultuser (i.e. all is completely local). But when I’m trying to run it with an OAuth authorization with my Github user, I’m getting the following error in the browser window as well as on the Node.js console when I start the Web Client:
failed to obtain access token (Error: getaddrinfo ENOTFOUND)
at ...\node.server\node_modules\passport-github\node_modules\passport-oauth\lib\passport-oauth\strategies\oauth2.js:125:38
at ...\node.server\node_modules\passport-github\node_modules\passport-oauth\node_modules\oauth\lib\oauth2.js:177:18
at ClientRequest.<anonymous> (…\node.server\node_modules\passport-github\node_modules\passport-oauth\node_modules\oauth\lib\oauth2.js:148:5)
at ClientRequest.emit (events.js:95:17)
at CleartextStream.socketErrorListener (http.js:1552:9)
at CleartextStream.emit (events.js:95:17)
at Socket.onerror (tls.js:1456:17)
at Socket.emit (events.js:117:20)
at net.js:834:16
at process._tickCallback (node.js:442:13)
This error happens right after the Github authorization site was displayed and authorization was given and only when I’m
behind our corporate firewall. In the case when I’m not behind this firewall, everything works fine and the Web Client starts. I’m using IE and Chrome.
In the attached log file (localhost.har, obtained from Chrome) one sees 2 requests after the authorization was given, the first is a POST
https://github.com/login/oauth/authorize and the second is a GET
http://localhost:3000/auth/github/callback?code=199653985646635aa129 , that results in a 500 (Internal Server Error) because of the exception above.
In the .npmrc, I configured the proxy settings (proxy & https-proxy) correctly (I hope), otherwise I couldn’t even have done the
npm install step, which is described some lines above in the mentioned instructions.
The RabbitMQ server and Node.js server are both running, the environment variables FLUX_GITHUB_CLIENT_ID & FLUX_GITHUB_CLIENT_SECRET are both correctly set, which can be seen on the console during the Node.js server
startup (there is a line like token=8ff5…, where 8ff5 is the beginning of the secret, which is not there if I run under the defaultuser).
I searched around in Google, tried many things out but could not find anything helpful.
Can someone reproduce my issue and help me?
Thanks in advance and ciao, Michael