{"action":"created","comment":{"url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/pulls/comments/136536227","pull_request_review_id":60088868,"id":136536227,"diff_hunk":"@@ -0,0 +1,71 @@\n+# Copyright 2017 Canonical Ltd.\n+# Licensed under the LGPLv3, see LICENCE file for details.\n+import abc\n+\n+\n+class Identity(object):\n+    ''' Holds identity information declared in a first party caveat added when\n+    discharging a third party caveat.\n+    '''\n+    __metaclass__ = abc.ABCMeta\n+\n+    @abc.abstractmethod\n+    def id(self):\n+        ''' Returns the id of the user","path":"macaroonbakery/identity.py","position":null,"original_position":14,"commit_id":"a87889b64e4b9b305c0222bf11e1673f1a1dc612","original_commit_id":"b2d45269d68391ba4df2e9cb39b2c901429addad","user":{"login":"fabricematrat","id":1395842,"avatar_url":"https://avatars2.githubusercontent.com/u/1395842?v=4","gravatar_id":"","url":"https://api.github.com/users/fabricematrat","html_url":"https://github.com/fabricematrat","followers_url":"https://api.github.com/users/fabricematrat/followers","following_url":"https://api.github.com/users/fabricematrat/following{/other_user}","gists_url":"https://api.github.com/users/fabricematrat/gists{/gist_id}","starred_url":"https://api.github.com/users/fabricematrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabricematrat/subscriptions","organizations_url":"https://api.github.com/users/fabricematrat/orgs","repos_url":"https://api.github.com/users/fabricematrat/repos","events_url":"https://api.github.com/users/fabricematrat/events{/privacy}","received_events_url":"https://api.github.com/users/fabricematrat/received_events","type":"User","site_admin":false},"body":"done.","created_at":"2017-09-01T09:38:56Z","updated_at":"2017-09-01T09:38:56Z","html_url":"https://github.com/go-macaroon-bakery/py-macaroon-bakery/pull/10#discussion_r136536227","pull_request_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/pulls/10","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/pulls/comments/136536227"},"html":{"href":"https://github.com/go-macaroon-bakery/py-macaroon-bakery/pull/10#discussion_r136536227"},"pull_request":{"href":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/pulls/10"}},"in_reply_to_id":136290032},"pull_request":{"url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/pulls/10","id":138366426,"html_url":"https://github.com/go-macaroon-bakery/py-macaroon-bakery/pull/10","diff_url":"https://github.com/go-macaroon-bakery/py-macaroon-bakery/pull/10.diff","patch_url":"https://github.com/go-macaroon-bakery/py-macaroon-bakery/pull/10.patch","issue_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/issues/10","number":10,"state":"open","locked":false,"title":"Add authorizer to check whether a given user is allowed to perform a set of operations.","user":{"login":"fabricematrat","id":1395842,"avatar_url":"https://avatars2.githubusercontent.com/u/1395842?v=4","gravatar_id":"","url":"https://api.github.com/users/fabricematrat","html_url":"https://github.com/fabricematrat","followers_url":"https://api.github.com/users/fabricematrat/followers","following_url":"https://api.github.com/users/fabricematrat/following{/other_user}","gists_url":"https://api.github.com/users/fabricematrat/gists{/gist_id}","starred_url":"https://api.github.com/users/fabricematrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabricematrat/subscriptions","organizations_url":"https://api.github.com/users/fabricematrat/orgs","repos_url":"https://api.github.com/users/fabricematrat/repos","events_url":"https://api.github.com/users/fabricematrat/events{/privacy}","received_events_url":"https://api.github.com/users/fabricematrat/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-08-30T08:35:17Z","updated_at":"2017-09-01T09:38:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b162811b8de58116a94dd1458d6de2c30ff62416","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/pulls/10/commits","review_comments_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/pulls/10/comments","review_comment_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/issues/10/comments","statuses_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/statuses/a87889b64e4b9b305c0222bf11e1673f1a1dc612","head":{"label":"fabricematrat:authorizer","ref":"authorizer","sha":"a87889b64e4b9b305c0222bf11e1673f1a1dc612","user":{"login":"fabricematrat","id":1395842,"avatar_url":"https://avatars2.githubusercontent.com/u/1395842?v=4","gravatar_id":"","url":"https://api.github.com/users/fabricematrat","html_url":"https://github.com/fabricematrat","followers_url":"https://api.github.com/users/fabricematrat/followers","following_url":"https://api.github.com/users/fabricematrat/following{/other_user}","gists_url":"https://api.github.com/users/fabricematrat/gists{/gist_id}","starred_url":"https://api.github.com/users/fabricematrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabricematrat/subscriptions","organizations_url":"https://api.github.com/users/fabricematrat/orgs","repos_url":"https://api.github.com/users/fabricematrat/repos","events_url":"https://api.github.com/users/fabricematrat/events{/privacy}","received_events_url":"https://api.github.com/users/fabricematrat/received_events","type":"User","site_admin":false},"repo":{"id":63251468,"name":"py-macaroon-bakery","full_name":"fabricematrat/py-macaroon-bakery","owner":{"login":"fabricematrat","id":1395842,"avatar_url":"https://avatars2.githubusercontent.com/u/1395842?v=4","gravatar_id":"","url":"https://api.github.com/users/fabricematrat","html_url":"https://github.com/fabricematrat","followers_url":"https://api.github.com/users/fabricematrat/followers","following_url":"https://api.github.com/users/fabricematrat/following{/other_user}","gists_url":"https://api.github.com/users/fabricematrat/gists{/gist_id}","starred_url":"https://api.github.com/users/fabricematrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabricematrat/subscriptions","organizations_url":"https://api.github.com/users/fabricematrat/orgs","repos_url":"https://api.github.com/users/fabricematrat/repos","events_url":"https://api.github.com/users/fabricematrat/events{/privacy}","received_events_url":"https://api.github.com/users/fabricematrat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fabricematrat/py-macaroon-bakery","description":"Python code to implement the httpbakery conventions","fork":true,"url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery","forks_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/forks","keys_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/teams","hooks_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/hooks","issue_events_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/issues/events{/number}","events_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/events","assignees_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/assignees{/user}","branches_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/branches{/branch}","tags_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/tags","blobs_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/git/refs{/sha}","trees_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/statuses/{sha}","languages_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/languages","stargazers_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/stargazers","contributors_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/contributors","subscribers_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/subscribers","subscription_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/subscription","commits_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/commits{/sha}","git_commits_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/git/commits{/sha}","comments_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/comments{/number}","issue_comment_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/issues/comments{/number}","contents_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/contents/{+path}","compare_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/merges","archive_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/downloads","issues_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/issues{/number}","pulls_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/pulls{/number}","milestones_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/milestones{/number}","notifications_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/labels{/name}","releases_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/releases{/id}","deployments_url":"https://api.github.com/repos/fabricematrat/py-macaroon-bakery/deployments","created_at":"2016-07-13T14:08:07Z","updated_at":"2017-06-09T07:49:25Z","pushed_at":"2017-09-01T09:35:27Z","git_url":"git://github.com/fabricematrat/py-macaroon-bakery.git","ssh_url":"git@github.com:fabricematrat/py-macaroon-bakery.git","clone_url":"https://github.com/fabricematrat/py-macaroon-bakery.git","svn_url":"https://github.com/fabricematrat/py-macaroon-bakery","homepage":null,"size":92,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"go-macaroon-bakery:master","ref":"master","sha":"b315b31e52311b2a752747ef678c15675734caa3","user":{"login":"go-macaroon-bakery","id":9721471,"avatar_url":"https://avatars0.githubusercontent.com/u/9721471?v=4","gravatar_id":"","url":"https://api.github.com/users/go-macaroon-bakery","html_url":"https://github.com/go-macaroon-bakery","followers_url":"https://api.github.com/users/go-macaroon-bakery/followers","following_url":"https://api.github.com/users/go-macaroon-bakery/following{/other_user}","gists_url":"https://api.github.com/users/go-macaroon-bakery/gists{/gist_id}","starred_url":"https://api.github.com/users/go-macaroon-bakery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-macaroon-bakery/subscriptions","organizations_url":"https://api.github.com/users/go-macaroon-bakery/orgs","repos_url":"https://api.github.com/users/go-macaroon-bakery/repos","events_url":"https://api.github.com/users/go-macaroon-bakery/events{/privacy}","received_events_url":"https://api.github.com/users/go-macaroon-bakery/received_events","type":"Organization","site_admin":false},"repo":{"id":63251150,"name":"py-macaroon-bakery","full_name":"go-macaroon-bakery/py-macaroon-bakery","owner":{"login":"go-macaroon-bakery","id":9721471,"avatar_url":"https://avatars0.githubusercontent.com/u/9721471?v=4","gravatar_id":"","url":"https://api.github.com/users/go-macaroon-bakery","html_url":"https://github.com/go-macaroon-bakery","followers_url":"https://api.github.com/users/go-macaroon-bakery/followers","following_url":"https://api.github.com/users/go-macaroon-bakery/following{/other_user}","gists_url":"https://api.github.com/users/go-macaroon-bakery/gists{/gist_id}","starred_url":"https://api.github.com/users/go-macaroon-bakery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-macaroon-bakery/subscriptions","organizations_url":"https://api.github.com/users/go-macaroon-bakery/orgs","repos_url":"https://api.github.com/users/go-macaroon-bakery/repos","events_url":"https://api.github.com/users/go-macaroon-bakery/events{/privacy}","received_events_url":"https://api.github.com/users/go-macaroon-bakery/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/go-macaroon-bakery/py-macaroon-bakery","description":"Python code to implement the httpbakery conventions","fork":false,"url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery","forks_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/forks","keys_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/teams","hooks_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/hooks","issue_events_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/issues/events{/number}","events_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/events","assignees_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/assignees{/user}","branches_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/branches{/branch}","tags_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/tags","blobs_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/git/refs{/sha}","trees_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/statuses/{sha}","languages_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/languages","stargazers_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/stargazers","contributors_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/contributors","subscribers_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/subscribers","subscription_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/subscription","commits_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/commits{/sha}","git_commits_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/git/commits{/sha}","comments_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/comments{/number}","issue_comment_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/issues/comments{/number}","contents_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/contents/{+path}","compare_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/merges","archive_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/downloads","issues_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/issues{/number}","pulls_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/pulls{/number}","milestones_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/milestones{/number}","notifications_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/labels{/name}","releases_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/releases{/id}","deployments_url":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/deployments","created_at":"2016-07-13T14:04:14Z","updated_at":"2017-06-09T07:48:16Z","pushed_at":"2017-09-01T09:35:28Z","git_url":"git://github.com/go-macaroon-bakery/py-macaroon-bakery.git","ssh_url":"git@github.com:go-macaroon-bakery/py-macaroon-bakery.git","clone_url":"https://github.com/go-macaroon-bakery/py-macaroon-bakery.git","svn_url":"https://github.com/go-macaroon-bakery/py-macaroon-bakery","homepage":null,"size":55,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/pulls/10"},"html":{"href":"https://github.com/go-macaroon-bakery/py-macaroon-bakery/pull/10"},"issue":{"href":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/issues/10"},"comments":{"href":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/go-macaroon-bakery/py-macaroon-bakery/statuses/a87889b64e4b9b305c0222bf11e1673f1a1dc612"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"fabricematrat"}}