{"action":"closed","issue":{"url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/1696","labels_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/1696/labels{/name}","comments_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/1696/comments","events_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/1696/events","html_url":"https://github.com/rtfd/readthedocs.org/issues/1696","id":108252358,"number":1696,"title":"Refactor oauth utils and managers","user":{"login":"agjohnson","id":1140183,"avatar_url":"https://avatars.githubusercontent.com/u/1140183?v=3","gravatar_id":"","url":"https://api.github.com/users/agjohnson","html_url":"https://github.com/agjohnson","followers_url":"https://api.github.com/users/agjohnson/followers","following_url":"https://api.github.com/users/agjohnson/following{/other_user}","gists_url":"https://api.github.com/users/agjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/agjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agjohnson/subscriptions","organizations_url":"https://api.github.com/users/agjohnson/orgs","repos_url":"https://api.github.com/users/agjohnson/repos","events_url":"https://api.github.com/users/agjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/agjohnson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rtfd/readthedocs.org/labels/Enhancement","name":"Enhancement","color":"02d7e1"}],"state":"closed","locked":false,"assignee":{"login":"agjohnson","id":1140183,"avatar_url":"https://avatars.githubusercontent.com/u/1140183?v=3","gravatar_id":"","url":"https://api.github.com/users/agjohnson","html_url":"https://github.com/agjohnson","followers_url":"https://api.github.com/users/agjohnson/followers","following_url":"https://api.github.com/users/agjohnson/following{/other_user}","gists_url":"https://api.github.com/users/agjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/agjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agjohnson/subscriptions","organizations_url":"https://api.github.com/users/agjohnson/orgs","repos_url":"https://api.github.com/users/agjohnson/repos","events_url":"https://api.github.com/users/agjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/agjohnson/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-09-25T02:52:19Z","updated_at":"2016-01-06T03:29:34Z","closed_at":"2016-01-06T03:29:34Z","body":"In dealing with #1695, it became apparent that the oauth utils and manager creation method could be refactored a good deal. Thoughts here:\r\n\r\n* Make provider classes that organize code and reduce duplication of codes\r\n* Breakup up sync functions into digestable methods on provider classes\r\n* Managers rely on providers for breaking down json responses, instead of splitting up code"}}