{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Security/issues/619","labels_url":"https://api.github.com/repos/aspnet/Security/issues/619/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Security/issues/619/comments","events_url":"https://api.github.com/repos/aspnet/Security/issues/619/events","html_url":"https://github.com/aspnet/Security/issues/619","id":122725473,"number":619,"title":"External Providers negotiation eg Facebook Login via proxy server","user":{"login":"mikes-gh","id":16208742,"avatar_url":"https://avatars.githubusercontent.com/u/16208742?v=3","gravatar_id":"","url":"https://api.github.com/users/mikes-gh","html_url":"https://github.com/mikes-gh","followers_url":"https://api.github.com/users/mikes-gh/followers","following_url":"https://api.github.com/users/mikes-gh/following{/other_user}","gists_url":"https://api.github.com/users/mikes-gh/gists{/gist_id}","starred_url":"https://api.github.com/users/mikes-gh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikes-gh/subscriptions","organizations_url":"https://api.github.com/users/mikes-gh/orgs","repos_url":"https://api.github.com/users/mikes-gh/repos","events_url":"https://api.github.com/users/mikes-gh/events{/privacy}","received_events_url":"https://api.github.com/users/mikes-gh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-17T12:27:28Z","updated_at":"2015-12-17T14:42:36Z","closed_at":null,"body":"It doesn't appear that I can set a client proxy server via web.config anymore in the System.Net section.\r\nI wanted to allow my app to access the external authentication providers without drilling out through my firewall.\r\n\r\nIs this possible?\r\nI know I could create an HttpClient and set the proxy on that but I don't have access to that object for the Facebook middleware. I thought I could use the BackHandler to set the proxy but proxy is not allowed to be set after HttpClient has already been created.\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aspnet/Security/issues/comments/165469268","html_url":"https://github.com/aspnet/Security/issues/619#issuecomment-165469268","issue_url":"https://api.github.com/repos/aspnet/Security/issues/619","id":165469268,"user":{"login":"Tratcher","id":1821173,"avatar_url":"https://avatars.githubusercontent.com/u/1821173?v=3","gravatar_id":"","url":"https://api.github.com/users/Tratcher","html_url":"https://github.com/Tratcher","followers_url":"https://api.github.com/users/Tratcher/followers","following_url":"https://api.github.com/users/Tratcher/following{/other_user}","gists_url":"https://api.github.com/users/Tratcher/gists{/gist_id}","starred_url":"https://api.github.com/users/Tratcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tratcher/subscriptions","organizations_url":"https://api.github.com/users/Tratcher/orgs","repos_url":"https://api.github.com/users/Tratcher/repos","events_url":"https://api.github.com/users/Tratcher/events{/privacy}","received_events_url":"https://api.github.com/users/Tratcher/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T14:42:36Z","updated_at":"2015-12-17T14:42:36Z","body":"You should be able to set it like this:\r\n```\r\n            app.UseFacebookAuthentication(new FacebookOptions()\r\n            {\r\n                AppId = Configuration[\"facebook:appid\"],\r\n                AppSecret = Configuration[\"facebook:appsecret\"],\r\n                BackchannelHttpHandler = new HttpClientHandler()\r\n                {\r\n                   Proxy = new WebProxy(\"http://myproxy:9090/\")\r\n                }\r\n            });\r\n```"}}