{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-studio/issues/860","labels_url":"https://api.github.com/repos/mapbox/mapbox-studio/issues/860/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-studio/issues/860/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-studio/issues/860/events","html_url":"https://github.com/mapbox/mapbox-studio/issues/860","id":43138034,"number":860,"title":"OAuth proxy","user":{"login":"bebud","id":1240322,"avatar_url":"https://avatars.githubusercontent.com/u/1240322?v=3","gravatar_id":"","url":"https://api.github.com/users/bebud","html_url":"https://github.com/bebud","followers_url":"https://api.github.com/users/bebud/followers","following_url":"https://api.github.com/users/bebud/following{/other_user}","gists_url":"https://api.github.com/users/bebud/gists{/gist_id}","starred_url":"https://api.github.com/users/bebud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bebud/subscriptions","organizations_url":"https://api.github.com/users/bebud/orgs","repos_url":"https://api.github.com/users/bebud/repos","events_url":"https://api.github.com/users/bebud/events{/privacy}","received_events_url":"https://api.github.com/users/bebud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":45,"created_at":"2014-09-18T14:20:39Z","updated_at":"2015-02-09T16:06:36Z","closed_at":null,"body":"We have a coporate proxy. Trying to run mapbox studio we get following error:\r\n\r\n```\r\nMapbox Studio @ http://localhost:3000/\r\nError: Access denied\r\n    at Object.app.use.passport.authenticate.session [as handle] (/home/q/dev/mapbox/mapbox-studio/lib/oauth.js:66:14)\r\n    at next (/home/q/dev/mapbox/mapbox-studio/node_modules/express/node_modules/connect/lib/proto.js:190:15)\r\n    at next (/home/q/dev/mapbox/mapbox-studio/node_modules/express/node_modules/connect/lib/proto.js:165:78)\r\n    at next (/home/q/dev/mapbox/mapbox-studio/node_modules/express/node_modules/connect/lib/proto.js:165:78)\r\n    at next (/home/q/dev/mapbox/mapbox-studio/node_modules/express/node_modules/connect/lib/proto.js:165:78)\r\n    at Object.initialize [as handle] (/home/q/dev/mapbox/mapbox-studio/node_modules/passport/lib/middleware/initialize.js:62:5)\r\n    at next (/home/q/dev/mapbox/mapbox-studio/node_modules/express/node_modules/connect/lib/proto.js:190:15)\r\n    at Object.expressInit [as handle] (/home/q/dev/mapbox/mapbox-studio/node_modules/express/lib/middleware.js:31:5)\r\n    at next (/home/q/dev/mapbox/mapbox-studio/node_modules/express/node_modules/connect/lib/proto.js:190:15)\r\n    at Object.query [as handle] (/home/q/dev/mapbox/mapbox-studio/node_modules/express/node_modules/connect/lib/middleware/query.js:44:5)\r\n{ [InternalOAuthError: Failed to obtain access token]\r\n  name: 'InternalOAuthError',\r\n  message: 'Failed to obtain access token',\r\n  oauthError: { [Error: getaddrinfo ENOTFOUND] code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall: 'getaddrinfo' } }\r\n```\r\n\r\nI think this is because of the oauth not using http_proxy environment variable. Is there a workaround?"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-studio/issues/comments/73534905","html_url":"https://github.com/mapbox/mapbox-studio/issues/860#issuecomment-73534905","issue_url":"https://api.github.com/repos/mapbox/mapbox-studio/issues/860","id":73534905,"user":{"login":"BergWerkGIS","id":4549888,"avatar_url":"https://avatars.githubusercontent.com/u/4549888?v=3","gravatar_id":"","url":"https://api.github.com/users/BergWerkGIS","html_url":"https://github.com/BergWerkGIS","followers_url":"https://api.github.com/users/BergWerkGIS/followers","following_url":"https://api.github.com/users/BergWerkGIS/following{/other_user}","gists_url":"https://api.github.com/users/BergWerkGIS/gists{/gist_id}","starred_url":"https://api.github.com/users/BergWerkGIS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BergWerkGIS/subscriptions","organizations_url":"https://api.github.com/users/BergWerkGIS/orgs","repos_url":"https://api.github.com/users/BergWerkGIS/repos","events_url":"https://api.github.com/users/BergWerkGIS/events{/privacy}","received_events_url":"https://api.github.com/users/BergWerkGIS/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T16:06:36Z","updated_at":"2015-02-09T16:06:36Z","body":"@cjgage \r\nWhen you enter `netsh winhttp show proxy`, what does that give you?"}}