{"action":"created","issue":{"url":"https://api.github.com/repos/wallabag/wallabag/issues/1586","labels_url":"https://api.github.com/repos/wallabag/wallabag/issues/1586/labels{/name}","comments_url":"https://api.github.com/repos/wallabag/wallabag/issues/1586/comments","events_url":"https://api.github.com/repos/wallabag/wallabag/issues/1586/events","html_url":"https://github.com/wallabag/wallabag/pull/1586","id":127056290,"number":1586,"title":"Restricted content retrieval","user":{"login":"bdunogier","id":235928,"avatar_url":"https://avatars.githubusercontent.com/u/235928?v=3","gravatar_id":"","url":"https://api.github.com/users/bdunogier","html_url":"https://github.com/bdunogier","followers_url":"https://api.github.com/users/bdunogier/followers","following_url":"https://api.github.com/users/bdunogier/following{/other_user}","gists_url":"https://api.github.com/users/bdunogier/gists{/gist_id}","starred_url":"https://api.github.com/users/bdunogier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdunogier/subscriptions","organizations_url":"https://api.github.com/users/bdunogier/orgs","repos_url":"https://api.github.com/users/bdunogier/repos","events_url":"https://api.github.com/users/bdunogier/events{/privacy}","received_events_url":"https://api.github.com/users/bdunogier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-16T22:02:28Z","updated_at":"2016-01-17T16:20:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wallabag/wallabag/pulls/1586","html_url":"https://github.com/wallabag/wallabag/pull/1586","diff_url":"https://github.com/wallabag/wallabag/pull/1586.diff","patch_url":"https://github.com/wallabag/wallabag/pull/1586.patch"},"body":"> Status: needs refinements, but concept complete\r\n> New version of #1536, with most of the logic moved to dependencies.\r\n\r\n### TL;DR\r\nAllows the retrieval of articles that require authentication using valid credentials.\r\n\r\n### How it works\r\n- A custom guzzle client is created from wallabag and passed to graby. It uses a file based CookieJar (guzzle feature) to make session data persistent\r\n- Login data for sites is provided by graby (each site must be configured through the configs)\r\n- A guzzle plugin ([site-authenticator](https://travis-ci.org/bdunogier/guzzle-site-authenticator)) takes care of authenticating using parameters from graby and login/passwords set from `parameters.yml.dist`.\r\n\r\nThere are probably parts that could be improved (login/password storage for instance), but I believe it is a good start.\r\n\r\n### TODO \r\n- [x] Re-update `composer.lock` (it should really be removed from branches :p)\r\n- [x] Tag the guzzle site authenticator plugin, and update requirement in wallabag"},"comment":{"url":"https://api.github.com/repos/wallabag/wallabag/issues/comments/172346708","html_url":"https://github.com/wallabag/wallabag/pull/1586#issuecomment-172346708","issue_url":"https://api.github.com/repos/wallabag/wallabag/issues/1586","id":172346708,"user":{"login":"bdunogier","id":235928,"avatar_url":"https://avatars.githubusercontent.com/u/235928?v=3","gravatar_id":"","url":"https://api.github.com/users/bdunogier","html_url":"https://github.com/bdunogier","followers_url":"https://api.github.com/users/bdunogier/followers","following_url":"https://api.github.com/users/bdunogier/following{/other_user}","gists_url":"https://api.github.com/users/bdunogier/gists{/gist_id}","starred_url":"https://api.github.com/users/bdunogier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdunogier/subscriptions","organizations_url":"https://api.github.com/users/bdunogier/orgs","repos_url":"https://api.github.com/users/bdunogier/repos","events_url":"https://api.github.com/users/bdunogier/events{/privacy}","received_events_url":"https://api.github.com/users/bdunogier/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T16:20:54Z","updated_at":"2016-01-17T16:20:54Z","body":"Fixed a couple little things that prevented the plugin from working.\r\n\r\nRefactored how credentials are organized a bit so that any site can be added."}}