{"action":"created","issue":{"url":"https://api.github.com/repos/perry-mitchell/webdav-client/issues/40","repository_url":"https://api.github.com/repos/perry-mitchell/webdav-client","labels_url":"https://api.github.com/repos/perry-mitchell/webdav-client/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/perry-mitchell/webdav-client/issues/40/comments","events_url":"https://api.github.com/repos/perry-mitchell/webdav-client/issues/40/events","html_url":"https://github.com/perry-mitchell/webdav-client/issues/40","id":237697770,"number":40,"title":"digest authentication support","user":{"login":"tjaartvdwalt","id":2066766,"avatar_url":"https://avatars0.githubusercontent.com/u/2066766?v=4","gravatar_id":"","url":"https://api.github.com/users/tjaartvdwalt","html_url":"https://github.com/tjaartvdwalt","followers_url":"https://api.github.com/users/tjaartvdwalt/followers","following_url":"https://api.github.com/users/tjaartvdwalt/following{/other_user}","gists_url":"https://api.github.com/users/tjaartvdwalt/gists{/gist_id}","starred_url":"https://api.github.com/users/tjaartvdwalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjaartvdwalt/subscriptions","organizations_url":"https://api.github.com/users/tjaartvdwalt/orgs","repos_url":"https://api.github.com/users/tjaartvdwalt/repos","events_url":"https://api.github.com/users/tjaartvdwalt/events{/privacy}","received_events_url":"https://api.github.com/users/tjaartvdwalt/received_events","type":"User","site_admin":false},"labels":[{"id":654360708,"url":"https://api.github.com/repos/perry-mitchell/webdav-client/labels/Effort:%20High","name":"Effort: High","color":"eb6420","default":false},{"id":654360724,"url":"https://api.github.com/repos/perry-mitchell/webdav-client/labels/Priority:%20High","name":"Priority: High","color":"eb6420","default":false},{"id":654360710,"url":"https://api.github.com/repos/perry-mitchell/webdav-client/labels/Status:%20Available","name":"Status: Available","color":"bfe5bf","default":false},{"id":654360717,"url":"https://api.github.com/repos/perry-mitchell/webdav-client/labels/Type:%20Enhancement","name":"Type: Enhancement","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/perry-mitchell/webdav-client/milestones/2","html_url":"https://github.com/perry-mitchell/webdav-client/milestone/2","labels_url":"https://api.github.com/repos/perry-mitchell/webdav-client/milestones/2/labels","id":2626275,"number":2,"title":"2.0.0","description":"","creator":{"login":"perry-mitchell","id":3869469,"avatar_url":"https://avatars0.githubusercontent.com/u/3869469?v=4","gravatar_id":"","url":"https://api.github.com/users/perry-mitchell","html_url":"https://github.com/perry-mitchell","followers_url":"https://api.github.com/users/perry-mitchell/followers","following_url":"https://api.github.com/users/perry-mitchell/following{/other_user}","gists_url":"https://api.github.com/users/perry-mitchell/gists{/gist_id}","starred_url":"https://api.github.com/users/perry-mitchell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perry-mitchell/subscriptions","organizations_url":"https://api.github.com/users/perry-mitchell/orgs","repos_url":"https://api.github.com/users/perry-mitchell/repos","events_url":"https://api.github.com/users/perry-mitchell/events{/privacy}","received_events_url":"https://api.github.com/users/perry-mitchell/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2017-07-06T20:50:18Z","updated_at":"2017-10-05T08:07:50Z","due_on":"2017-12-31T08:00:00Z","closed_at":null},"comments":13,"created_at":"2017-06-22T00:05:46Z","updated_at":"2018-05-21T20:32:24Z","closed_at":null,"author_association":"NONE","body":"Hi, looks like only Basic authentication is currently supported? Would it be possible/easy to add Digest authentication?\r\n\r\nI am trying to connect to a server that does not appear to support Basic Auth. I get the following error.\r\n\r\n```\r\nNo 'Authorization: Digest' header found. Either the client didn't send one, or the server is misconfigured\r\n```"},"comment":{"url":"https://api.github.com/repos/perry-mitchell/webdav-client/issues/comments/390773536","html_url":"https://github.com/perry-mitchell/webdav-client/issues/40#issuecomment-390773536","issue_url":"https://api.github.com/repos/perry-mitchell/webdav-client/issues/40","id":390773536,"user":{"login":"jbruni","id":69181,"avatar_url":"https://avatars2.githubusercontent.com/u/69181?v=4","gravatar_id":"","url":"https://api.github.com/users/jbruni","html_url":"https://github.com/jbruni","followers_url":"https://api.github.com/users/jbruni/followers","following_url":"https://api.github.com/users/jbruni/following{/other_user}","gists_url":"https://api.github.com/users/jbruni/gists{/gist_id}","starred_url":"https://api.github.com/users/jbruni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbruni/subscriptions","organizations_url":"https://api.github.com/users/jbruni/orgs","repos_url":"https://api.github.com/users/jbruni/repos","events_url":"https://api.github.com/users/jbruni/events{/privacy}","received_events_url":"https://api.github.com/users/jbruni/received_events","type":"User","site_admin":false},"created_at":"2018-05-21T20:32:24Z","updated_at":"2018-05-21T20:32:24Z","author_association":"NONE","body":"Actually, I got digest authentication working! I'm able to connect to a SabreDAV server.\r\n\r\nFirst, apart from `webdav`, install also `digest-fetch` and `crypto-js` as dependencies:\r\n\r\n`npm install webdav digest-fetch crypto-js`\r\n\r\nThen, create the WebDAV client this way:\r\n\r\n```js\r\nconst DigestFetch = require('digest-fetch');\r\nconst createClient = require('webdav');\r\n\r\nconst digest = new DigestFetch('username', 'password');\r\ncreateClient.setFetchMethod(digest.fetch.bind(digest));\r\nconst client = createClient('path');\r\n```\r\n\r\nIt works!\r\n\r\nI will be using as a \"dirty workaround\", while @perry-mitchell prepares the official support.\r\n\r\nBTW, thanks for this awesome WebDAV client package. :+1: "}}
{"actor":{"display_login":"jbruni"}}