{"action":"created","issue":{"url":"https://api.github.com/repos/perry-mitchell/webdav-client/issues/6","repository_url":"https://api.github.com/repos/perry-mitchell/webdav-client","labels_url":"https://api.github.com/repos/perry-mitchell/webdav-client/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/perry-mitchell/webdav-client/issues/6/comments","events_url":"https://api.github.com/repos/perry-mitchell/webdav-client/issues/6/events","html_url":"https://github.com/perry-mitchell/webdav-client/issues/6","id":186587022,"number":6,"title":"2 Factor Authentication support?","user":{"login":"Jakobud","id":87356,"avatar_url":"https://avatars.githubusercontent.com/u/87356?v=3","gravatar_id":"","url":"https://api.github.com/users/Jakobud","html_url":"https://github.com/Jakobud","followers_url":"https://api.github.com/users/Jakobud/followers","following_url":"https://api.github.com/users/Jakobud/following{/other_user}","gists_url":"https://api.github.com/users/Jakobud/gists{/gist_id}","starred_url":"https://api.github.com/users/Jakobud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jakobud/subscriptions","organizations_url":"https://api.github.com/users/Jakobud/orgs","repos_url":"https://api.github.com/users/Jakobud/repos","events_url":"https://api.github.com/users/Jakobud/events{/privacy}","received_events_url":"https://api.github.com/users/Jakobud/received_events","type":"User","site_admin":false},"labels":[{"id":457337397,"url":"https://api.github.com/repos/perry-mitchell/webdav-client/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-01T16:58:15Z","updated_at":"2016-11-01T20:54:05Z","closed_at":null,"body":"Is it possible to add 2 Factor Authentication support to this? I have particular WebDAV servers I want to connect to that require 2FA.\r\n\r\nAre there any other node.js libraries that would support this? "},"comment":{"url":"https://api.github.com/repos/perry-mitchell/webdav-client/issues/comments/257693354","html_url":"https://github.com/perry-mitchell/webdav-client/issues/6#issuecomment-257693354","issue_url":"https://api.github.com/repos/perry-mitchell/webdav-client/issues/6","id":257693354,"user":{"login":"Jakobud","id":87356,"avatar_url":"https://avatars.githubusercontent.com/u/87356?v=3","gravatar_id":"","url":"https://api.github.com/users/Jakobud","html_url":"https://github.com/Jakobud","followers_url":"https://api.github.com/users/Jakobud/followers","following_url":"https://api.github.com/users/Jakobud/following{/other_user}","gists_url":"https://api.github.com/users/Jakobud/gists{/gist_id}","starred_url":"https://api.github.com/users/Jakobud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jakobud/subscriptions","organizations_url":"https://api.github.com/users/Jakobud/orgs","repos_url":"https://api.github.com/users/Jakobud/repos","events_url":"https://api.github.com/users/Jakobud/events{/privacy}","received_events_url":"https://api.github.com/users/Jakobud/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T20:54:05Z","updated_at":"2016-11-01T20:54:05Z","body":"Okay, what I have figured out is this article works:\r\n\r\nhttp://www.qed42.com/blog/using-curl-webdav-two-factor-authentication\r\n\r\nThis article describes using CURL to upload a file to a WebDAV server that requires 2 Factor Auth. Essentially I think we someone refers to 2 Factor Auth in a webdav scenario, they are just talking about having another form of authentication beyond just a username/password. In this case, it's a certificate (with passphrase) they needs to match with what the server has. So with Curl in this case, you are telling it what server to connect to, what file to upload, what your username/password is, but also what cert to use and the passphrase. I just tried this curl command on OSX here and it worked perfectly.\r\n\r\nSo that is a step at least in the right direction in understanding what 2 factor auth means with WebDAV. My next step is to look at some curl libraries that support this functionality and maybe work backwards from there.\r\n\r\nI do like your idea of being able to pass generic parameters though. That is a good approach."}}
{"actor":{"display_login":"Jakobud"}}