{"action":"closed","number":14,"pull_request":{"url":"https://api.github.com/repos/LabAdvComp/indexd/pulls/14","id":54898288,"html_url":"https://github.com/LabAdvComp/indexd/pull/14","diff_url":"https://github.com/LabAdvComp/indexd/pull/14.diff","patch_url":"https://github.com/LabAdvComp/indexd/pull/14.patch","issue_url":"https://api.github.com/repos/LabAdvComp/indexd/issues/14","number":14,"state":"closed","locked":false,"title":"adds basic auth","user":{"login":"MurphyMarkW","id":1524540,"avatar_url":"https://avatars.githubusercontent.com/u/1524540?v=3","gravatar_id":"","url":"https://api.github.com/users/MurphyMarkW","html_url":"https://github.com/MurphyMarkW","followers_url":"https://api.github.com/users/MurphyMarkW/followers","following_url":"https://api.github.com/users/MurphyMarkW/following{/other_user}","gists_url":"https://api.github.com/users/MurphyMarkW/gists{/gist_id}","starred_url":"https://api.github.com/users/MurphyMarkW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MurphyMarkW/subscriptions","organizations_url":"https://api.github.com/users/MurphyMarkW/orgs","repos_url":"https://api.github.com/users/MurphyMarkW/repos","events_url":"https://api.github.com/users/MurphyMarkW/events{/privacy}","received_events_url":"https://api.github.com/users/MurphyMarkW/received_events","type":"User","site_admin":false},"body":"This adds basic auth to all data-modifying endpoints. This is done by implementing `indexd.auth.driver.AuthDriverABC` abstract base class, similar to the index and alias drivers, and registering functions as requiring auth via the `indexd.auth.authorize` decorator. Requests routed to handlers wrapped in the `authorize` decorator will be authenticated using the username and password in `flask.request.authorization`. If authenticated, the `flask.request.authorization` property will be replaced with a user context dictionary that provides user privilege information, such as username and roles.\r\n\r\nCurrently there is no way to create, modify or delete credentials. Credentials must be handled directly in the auth backend database. This should be handled via a separate pull request to add `/auth` endpoints.","created_at":"2016-01-01T23:42:15Z","updated_at":"2016-01-02T00:55:21Z","closed_at":"2016-01-02T00:55:21Z","merged_at":"2016-01-02T00:55:21Z","merge_commit_sha":"4146f6f61115e467ab84ba2d66fc3f4dcffc4f54","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LabAdvComp/indexd/pulls/14/commits","review_comments_url":"https://api.github.com/repos/LabAdvComp/indexd/pulls/14/comments","review_comment_url":"https://api.github.com/repos/LabAdvComp/indexd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LabAdvComp/indexd/issues/14/comments","statuses_url":"https://api.github.com/repos/LabAdvComp/indexd/statuses/e913579caaa22fcd1ca3354e6305638e7a48723c","head":{"label":"LabAdvComp:add-basic-auth","ref":"add-basic-auth","sha":"e913579caaa22fcd1ca3354e6305638e7a48723c","user":{"login":"LabAdvComp","id":2567069,"avatar_url":"https://avatars.githubusercontent.com/u/2567069?v=3","gravatar_id":"","url":"https://api.github.com/users/LabAdvComp","html_url":"https://github.com/LabAdvComp","followers_url":"https://api.github.com/users/LabAdvComp/followers","following_url":"https://api.github.com/users/LabAdvComp/following{/other_user}","gists_url":"https://api.github.com/users/LabAdvComp/gists{/gist_id}","starred_url":"https://api.github.com/users/LabAdvComp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LabAdvComp/subscriptions","organizations_url":"https://api.github.com/users/LabAdvComp/orgs","repos_url":"https://api.github.com/users/LabAdvComp/repos","events_url":"https://api.github.com/users/LabAdvComp/events{/privacy}","received_events_url":"https://api.github.com/users/LabAdvComp/received_events","type":"Organization","site_admin":false},"repo":{"id":44071955,"name":"indexd","full_name":"LabAdvComp/indexd","owner":{"login":"LabAdvComp","id":2567069,"avatar_url":"https://avatars.githubusercontent.com/u/2567069?v=3","gravatar_id":"","url":"https://api.github.com/users/LabAdvComp","html_url":"https://github.com/LabAdvComp","followers_url":"https://api.github.com/users/LabAdvComp/followers","following_url":"https://api.github.com/users/LabAdvComp/following{/other_user}","gists_url":"https://api.github.com/users/LabAdvComp/gists{/gist_id}","starred_url":"https://api.github.com/users/LabAdvComp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LabAdvComp/subscriptions","organizations_url":"https://api.github.com/users/LabAdvComp/orgs","repos_url":"https://api.github.com/users/LabAdvComp/repos","events_url":"https://api.github.com/users/LabAdvComp/events{/privacy}","received_events_url":"https://api.github.com/users/LabAdvComp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LabAdvComp/indexd","description":"Prototype index service server.","fork":false,"url":"https://api.github.com/repos/LabAdvComp/indexd","forks_url":"https://api.github.com/repos/LabAdvComp/indexd/forks","keys_url":"https://api.github.com/repos/LabAdvComp/indexd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LabAdvComp/indexd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LabAdvComp/indexd/teams","hooks_url":"https://api.github.com/repos/LabAdvComp/indexd/hooks","issue_events_url":"https://api.github.com/repos/LabAdvComp/indexd/issues/events{/number}","events_url":"https://api.github.com/repos/LabAdvComp/indexd/events","assignees_url":"https://api.github.com/repos/LabAdvComp/indexd/assignees{/user}","branches_url":"https://api.github.com/repos/LabAdvComp/indexd/branches{/branch}","tags_url":"https://api.github.com/repos/LabAdvComp/indexd/tags","blobs_url":"https://api.github.com/repos/LabAdvComp/indexd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LabAdvComp/indexd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LabAdvComp/indexd/git/refs{/sha}","trees_url":"https://api.github.com/repos/LabAdvComp/indexd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LabAdvComp/indexd/statuses/{sha}","languages_url":"https://api.github.com/repos/LabAdvComp/indexd/languages","stargazers_url":"https://api.github.com/repos/LabAdvComp/indexd/stargazers","contributors_url":"https://api.github.com/repos/LabAdvComp/indexd/contributors","subscribers_url":"https://api.github.com/repos/LabAdvComp/indexd/subscribers","subscription_url":"https://api.github.com/repos/LabAdvComp/indexd/subscription","commits_url":"https://api.github.com/repos/LabAdvComp/indexd/commits{/sha}","git_commits_url":"https://api.github.com/repos/LabAdvComp/indexd/git/commits{/sha}","comments_url":"https://api.github.com/repos/LabAdvComp/indexd/comments{/number}","issue_comment_url":"https://api.github.com/repos/LabAdvComp/indexd/issues/comments{/number}","contents_url":"https://api.github.com/repos/LabAdvComp/indexd/contents/{+path}","compare_url":"https://api.github.com/repos/LabAdvComp/indexd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LabAdvComp/indexd/merges","archive_url":"https://api.github.com/repos/LabAdvComp/indexd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LabAdvComp/indexd/downloads","issues_url":"https://api.github.com/repos/LabAdvComp/indexd/issues{/number}","pulls_url":"https://api.github.com/repos/LabAdvComp/indexd/pulls{/number}","milestones_url":"https://api.github.com/repos/LabAdvComp/indexd/milestones{/number}","notifications_url":"https://api.github.com/repos/LabAdvComp/indexd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LabAdvComp/indexd/labels{/name}","releases_url":"https://api.github.com/repos/LabAdvComp/indexd/releases{/id}","created_at":"2015-10-11T22:20:24Z","updated_at":"2015-10-12T18:20:26Z","pushed_at":"2016-01-02T00:55:22Z","git_url":"git://github.com/LabAdvComp/indexd.git","ssh_url":"git@github.com:LabAdvComp/indexd.git","clone_url":"https://github.com/LabAdvComp/indexd.git","svn_url":"https://github.com/LabAdvComp/indexd","homepage":null,"size":73,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"LabAdvComp:develop","ref":"develop","sha":"f1e5f5137c7821228a74f20137b947bebc57af88","user":{"login":"LabAdvComp","id":2567069,"avatar_url":"https://avatars.githubusercontent.com/u/2567069?v=3","gravatar_id":"","url":"https://api.github.com/users/LabAdvComp","html_url":"https://github.com/LabAdvComp","followers_url":"https://api.github.com/users/LabAdvComp/followers","following_url":"https://api.github.com/users/LabAdvComp/following{/other_user}","gists_url":"https://api.github.com/users/LabAdvComp/gists{/gist_id}","starred_url":"https://api.github.com/users/LabAdvComp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LabAdvComp/subscriptions","organizations_url":"https://api.github.com/users/LabAdvComp/orgs","repos_url":"https://api.github.com/users/LabAdvComp/repos","events_url":"https://api.github.com/users/LabAdvComp/events{/privacy}","received_events_url":"https://api.github.com/users/LabAdvComp/received_events","type":"Organization","site_admin":false},"repo":{"id":44071955,"name":"indexd","full_name":"LabAdvComp/indexd","owner":{"login":"LabAdvComp","id":2567069,"avatar_url":"https://avatars.githubusercontent.com/u/2567069?v=3","gravatar_id":"","url":"https://api.github.com/users/LabAdvComp","html_url":"https://github.com/LabAdvComp","followers_url":"https://api.github.com/users/LabAdvComp/followers","following_url":"https://api.github.com/users/LabAdvComp/following{/other_user}","gists_url":"https://api.github.com/users/LabAdvComp/gists{/gist_id}","starred_url":"https://api.github.com/users/LabAdvComp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LabAdvComp/subscriptions","organizations_url":"https://api.github.com/users/LabAdvComp/orgs","repos_url":"https://api.github.com/users/LabAdvComp/repos","events_url":"https://api.github.com/users/LabAdvComp/events{/privacy}","received_events_url":"https://api.github.com/users/LabAdvComp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LabAdvComp/indexd","description":"Prototype index service server.","fork":false,"url":"https://api.github.com/repos/LabAdvComp/indexd","forks_url":"https://api.github.com/repos/LabAdvComp/indexd/forks","keys_url":"https://api.github.com/repos/LabAdvComp/indexd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LabAdvComp/indexd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LabAdvComp/indexd/teams","hooks_url":"https://api.github.com/repos/LabAdvComp/indexd/hooks","issue_events_url":"https://api.github.com/repos/LabAdvComp/indexd/issues/events{/number}","events_url":"https://api.github.com/repos/LabAdvComp/indexd/events","assignees_url":"https://api.github.com/repos/LabAdvComp/indexd/assignees{/user}","branches_url":"https://api.github.com/repos/LabAdvComp/indexd/branches{/branch}","tags_url":"https://api.github.com/repos/LabAdvComp/indexd/tags","blobs_url":"https://api.github.com/repos/LabAdvComp/indexd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LabAdvComp/indexd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LabAdvComp/indexd/git/refs{/sha}","trees_url":"https://api.github.com/repos/LabAdvComp/indexd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LabAdvComp/indexd/statuses/{sha}","languages_url":"https://api.github.com/repos/LabAdvComp/indexd/languages","stargazers_url":"https://api.github.com/repos/LabAdvComp/indexd/stargazers","contributors_url":"https://api.github.com/repos/LabAdvComp/indexd/contributors","subscribers_url":"https://api.github.com/repos/LabAdvComp/indexd/subscribers","subscription_url":"https://api.github.com/repos/LabAdvComp/indexd/subscription","commits_url":"https://api.github.com/repos/LabAdvComp/indexd/commits{/sha}","git_commits_url":"https://api.github.com/repos/LabAdvComp/indexd/git/commits{/sha}","comments_url":"https://api.github.com/repos/LabAdvComp/indexd/comments{/number}","issue_comment_url":"https://api.github.com/repos/LabAdvComp/indexd/issues/comments{/number}","contents_url":"https://api.github.com/repos/LabAdvComp/indexd/contents/{+path}","compare_url":"https://api.github.com/repos/LabAdvComp/indexd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LabAdvComp/indexd/merges","archive_url":"https://api.github.com/repos/LabAdvComp/indexd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LabAdvComp/indexd/downloads","issues_url":"https://api.github.com/repos/LabAdvComp/indexd/issues{/number}","pulls_url":"https://api.github.com/repos/LabAdvComp/indexd/pulls{/number}","milestones_url":"https://api.github.com/repos/LabAdvComp/indexd/milestones{/number}","notifications_url":"https://api.github.com/repos/LabAdvComp/indexd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LabAdvComp/indexd/labels{/name}","releases_url":"https://api.github.com/repos/LabAdvComp/indexd/releases{/id}","created_at":"2015-10-11T22:20:24Z","updated_at":"2015-10-12T18:20:26Z","pushed_at":"2016-01-02T00:55:22Z","git_url":"git://github.com/LabAdvComp/indexd.git","ssh_url":"git@github.com:LabAdvComp/indexd.git","clone_url":"https://github.com/LabAdvComp/indexd.git","svn_url":"https://github.com/LabAdvComp/indexd","homepage":null,"size":73,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LabAdvComp/indexd/pulls/14"},"html":{"href":"https://github.com/LabAdvComp/indexd/pull/14"},"issue":{"href":"https://api.github.com/repos/LabAdvComp/indexd/issues/14"},"comments":{"href":"https://api.github.com/repos/LabAdvComp/indexd/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/LabAdvComp/indexd/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/LabAdvComp/indexd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LabAdvComp/indexd/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/LabAdvComp/indexd/statuses/e913579caaa22fcd1ca3354e6305638e7a48723c"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"MurphyMarkW","id":1524540,"avatar_url":"https://avatars.githubusercontent.com/u/1524540?v=3","gravatar_id":"","url":"https://api.github.com/users/MurphyMarkW","html_url":"https://github.com/MurphyMarkW","followers_url":"https://api.github.com/users/MurphyMarkW/followers","following_url":"https://api.github.com/users/MurphyMarkW/following{/other_user}","gists_url":"https://api.github.com/users/MurphyMarkW/gists{/gist_id}","starred_url":"https://api.github.com/users/MurphyMarkW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MurphyMarkW/subscriptions","organizations_url":"https://api.github.com/users/MurphyMarkW/orgs","repos_url":"https://api.github.com/users/MurphyMarkW/repos","events_url":"https://api.github.com/users/MurphyMarkW/events{/privacy}","received_events_url":"https://api.github.com/users/MurphyMarkW/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":9,"additions":249,"deletions":13,"changed_files":12}}