{"action":"closed","number":6,"pull_request":{"url":"https://api.github.com/repos/matrix-org/go-neb/pulls/6","id":80075854,"html_url":"https://github.com/matrix-org/go-neb/pull/6","diff_url":"https://github.com/matrix-org/go-neb/pull/6.diff","patch_url":"https://github.com/matrix-org/go-neb/pull/6.patch","issue_url":"https://api.github.com/repos/matrix-org/go-neb/issues/6","number":6,"state":"closed","locked":false,"title":"Add concept of AuthRealms","user":{"login":"Kegsay","id":7190048,"avatar_url":"https://avatars.githubusercontent.com/u/7190048?v=3","gravatar_id":"","url":"https://api.github.com/users/Kegsay","html_url":"https://github.com/Kegsay","followers_url":"https://api.github.com/users/Kegsay/followers","following_url":"https://api.github.com/users/Kegsay/following{/other_user}","gists_url":"https://api.github.com/users/Kegsay/gists{/gist_id}","starred_url":"https://api.github.com/users/Kegsay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kegsay/subscriptions","organizations_url":"https://api.github.com/users/Kegsay/orgs","repos_url":"https://api.github.com/users/Kegsay/repos","events_url":"https://api.github.com/users/Kegsay/events{/privacy}","received_events_url":"https://api.github.com/users/Kegsay/received_events","type":"User","site_admin":false},"body":"- These represent a place where a user can authenticate themselves.\r\n- They function in the same way as Services (insert/update based on an HTTP API)\r\n- They currently don't *do* a lot other than exist for storing realm-specific\r\n  information (e.g. the `GithubRealm` stores the `ClientSecret` and `ClientID`)\r\n\r\nMost of the code is direct copypasta from `Services`. I've replaced the third-party auth endpoint with the realm endpoint for now. Another PR will remove `ThirdPartyAuth` entirely. Another PR after that will add in the concept of `AuthSession` which represents an individual session for an auth realm.","created_at":"2016-08-04T13:14:10Z","updated_at":"2016-08-04T13:18:46Z","closed_at":"2016-08-04T13:18:45Z","merged_at":"2016-08-04T13:18:45Z","merge_commit_sha":"a990bfb927c96a9ba713d62d58b768a1cfdc92d4","assignee":{"login":"NegativeMjark","id":904009,"avatar_url":"https://avatars.githubusercontent.com/u/904009?v=3","gravatar_id":"","url":"https://api.github.com/users/NegativeMjark","html_url":"https://github.com/NegativeMjark","followers_url":"https://api.github.com/users/NegativeMjark/followers","following_url":"https://api.github.com/users/NegativeMjark/following{/other_user}","gists_url":"https://api.github.com/users/NegativeMjark/gists{/gist_id}","starred_url":"https://api.github.com/users/NegativeMjark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NegativeMjark/subscriptions","organizations_url":"https://api.github.com/users/NegativeMjark/orgs","repos_url":"https://api.github.com/users/NegativeMjark/repos","events_url":"https://api.github.com/users/NegativeMjark/events{/privacy}","received_events_url":"https://api.github.com/users/NegativeMjark/received_events","type":"User","site_admin":false},"assignees":[{"login":"NegativeMjark","id":904009,"avatar_url":"https://avatars.githubusercontent.com/u/904009?v=3","gravatar_id":"","url":"https://api.github.com/users/NegativeMjark","html_url":"https://github.com/NegativeMjark","followers_url":"https://api.github.com/users/NegativeMjark/followers","following_url":"https://api.github.com/users/NegativeMjark/following{/other_user}","gists_url":"https://api.github.com/users/NegativeMjark/gists{/gist_id}","starred_url":"https://api.github.com/users/NegativeMjark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NegativeMjark/subscriptions","organizations_url":"https://api.github.com/users/NegativeMjark/orgs","repos_url":"https://api.github.com/users/NegativeMjark/repos","events_url":"https://api.github.com/users/NegativeMjark/events{/privacy}","received_events_url":"https://api.github.com/users/NegativeMjark/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/matrix-org/go-neb/pulls/6/commits","review_comments_url":"https://api.github.com/repos/matrix-org/go-neb/pulls/6/comments","review_comment_url":"https://api.github.com/repos/matrix-org/go-neb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matrix-org/go-neb/issues/6/comments","statuses_url":"https://api.github.com/repos/matrix-org/go-neb/statuses/36eb21be7cd3733b835d1f5b597480521e5ba809","head":{"label":"matrix-org:kegan/auth-realms","ref":"kegan/auth-realms","sha":"36eb21be7cd3733b835d1f5b597480521e5ba809","user":{"login":"matrix-org","id":8418310,"avatar_url":"https://avatars.githubusercontent.com/u/8418310?v=3","gravatar_id":"","url":"https://api.github.com/users/matrix-org","html_url":"https://github.com/matrix-org","followers_url":"https://api.github.com/users/matrix-org/followers","following_url":"https://api.github.com/users/matrix-org/following{/other_user}","gists_url":"https://api.github.com/users/matrix-org/gists{/gist_id}","starred_url":"https://api.github.com/users/matrix-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matrix-org/subscriptions","organizations_url":"https://api.github.com/users/matrix-org/orgs","repos_url":"https://api.github.com/users/matrix-org/repos","events_url":"https://api.github.com/users/matrix-org/events{/privacy}","received_events_url":"https://api.github.com/users/matrix-org/received_events","type":"Organization","site_admin":false},"repo":{"id":64469341,"name":"go-neb","full_name":"matrix-org/go-neb","owner":{"login":"matrix-org","id":8418310,"avatar_url":"https://avatars.githubusercontent.com/u/8418310?v=3","gravatar_id":"","url":"https://api.github.com/users/matrix-org","html_url":"https://github.com/matrix-org","followers_url":"https://api.github.com/users/matrix-org/followers","following_url":"https://api.github.com/users/matrix-org/following{/other_user}","gists_url":"https://api.github.com/users/matrix-org/gists{/gist_id}","starred_url":"https://api.github.com/users/matrix-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matrix-org/subscriptions","organizations_url":"https://api.github.com/users/matrix-org/orgs","repos_url":"https://api.github.com/users/matrix-org/repos","events_url":"https://api.github.com/users/matrix-org/events{/privacy}","received_events_url":"https://api.github.com/users/matrix-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/matrix-org/go-neb","description":"Extensible matrix bot written in Go","fork":false,"url":"https://api.github.com/repos/matrix-org/go-neb","forks_url":"https://api.github.com/repos/matrix-org/go-neb/forks","keys_url":"https://api.github.com/repos/matrix-org/go-neb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matrix-org/go-neb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matrix-org/go-neb/teams","hooks_url":"https://api.github.com/repos/matrix-org/go-neb/hooks","issue_events_url":"https://api.github.com/repos/matrix-org/go-neb/issues/events{/number}","events_url":"https://api.github.com/repos/matrix-org/go-neb/events","assignees_url":"https://api.github.com/repos/matrix-org/go-neb/assignees{/user}","branches_url":"https://api.github.com/repos/matrix-org/go-neb/branches{/branch}","tags_url":"https://api.github.com/repos/matrix-org/go-neb/tags","blobs_url":"https://api.github.com/repos/matrix-org/go-neb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matrix-org/go-neb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matrix-org/go-neb/git/refs{/sha}","trees_url":"https://api.github.com/repos/matrix-org/go-neb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matrix-org/go-neb/statuses/{sha}","languages_url":"https://api.github.com/repos/matrix-org/go-neb/languages","stargazers_url":"https://api.github.com/repos/matrix-org/go-neb/stargazers","contributors_url":"https://api.github.com/repos/matrix-org/go-neb/contributors","subscribers_url":"https://api.github.com/repos/matrix-org/go-neb/subscribers","subscription_url":"https://api.github.com/repos/matrix-org/go-neb/subscription","commits_url":"https://api.github.com/repos/matrix-org/go-neb/commits{/sha}","git_commits_url":"https://api.github.com/repos/matrix-org/go-neb/git/commits{/sha}","comments_url":"https://api.github.com/repos/matrix-org/go-neb/comments{/number}","issue_comment_url":"https://api.github.com/repos/matrix-org/go-neb/issues/comments{/number}","contents_url":"https://api.github.com/repos/matrix-org/go-neb/contents/{+path}","compare_url":"https://api.github.com/repos/matrix-org/go-neb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matrix-org/go-neb/merges","archive_url":"https://api.github.com/repos/matrix-org/go-neb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matrix-org/go-neb/downloads","issues_url":"https://api.github.com/repos/matrix-org/go-neb/issues{/number}","pulls_url":"https://api.github.com/repos/matrix-org/go-neb/pulls{/number}","milestones_url":"https://api.github.com/repos/matrix-org/go-neb/milestones{/number}","notifications_url":"https://api.github.com/repos/matrix-org/go-neb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matrix-org/go-neb/labels{/name}","releases_url":"https://api.github.com/repos/matrix-org/go-neb/releases{/id}","deployments_url":"https://api.github.com/repos/matrix-org/go-neb/deployments","created_at":"2016-07-29T09:39:03Z","updated_at":"2016-08-03T12:55:32Z","pushed_at":"2016-08-04T13:18:45Z","git_url":"git://github.com/matrix-org/go-neb.git","ssh_url":"git@github.com:matrix-org/go-neb.git","clone_url":"https://github.com/matrix-org/go-neb.git","svn_url":"https://github.com/matrix-org/go-neb","homepage":null,"size":2180,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":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":1,"default_branch":"master"}},"base":{"label":"matrix-org:master","ref":"master","sha":"e9ebaceecf539cc65bbf3260eb3d512aa53b08cc","user":{"login":"matrix-org","id":8418310,"avatar_url":"https://avatars.githubusercontent.com/u/8418310?v=3","gravatar_id":"","url":"https://api.github.com/users/matrix-org","html_url":"https://github.com/matrix-org","followers_url":"https://api.github.com/users/matrix-org/followers","following_url":"https://api.github.com/users/matrix-org/following{/other_user}","gists_url":"https://api.github.com/users/matrix-org/gists{/gist_id}","starred_url":"https://api.github.com/users/matrix-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matrix-org/subscriptions","organizations_url":"https://api.github.com/users/matrix-org/orgs","repos_url":"https://api.github.com/users/matrix-org/repos","events_url":"https://api.github.com/users/matrix-org/events{/privacy}","received_events_url":"https://api.github.com/users/matrix-org/received_events","type":"Organization","site_admin":false},"repo":{"id":64469341,"name":"go-neb","full_name":"matrix-org/go-neb","owner":{"login":"matrix-org","id":8418310,"avatar_url":"https://avatars.githubusercontent.com/u/8418310?v=3","gravatar_id":"","url":"https://api.github.com/users/matrix-org","html_url":"https://github.com/matrix-org","followers_url":"https://api.github.com/users/matrix-org/followers","following_url":"https://api.github.com/users/matrix-org/following{/other_user}","gists_url":"https://api.github.com/users/matrix-org/gists{/gist_id}","starred_url":"https://api.github.com/users/matrix-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matrix-org/subscriptions","organizations_url":"https://api.github.com/users/matrix-org/orgs","repos_url":"https://api.github.com/users/matrix-org/repos","events_url":"https://api.github.com/users/matrix-org/events{/privacy}","received_events_url":"https://api.github.com/users/matrix-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/matrix-org/go-neb","description":"Extensible matrix bot written in Go","fork":false,"url":"https://api.github.com/repos/matrix-org/go-neb","forks_url":"https://api.github.com/repos/matrix-org/go-neb/forks","keys_url":"https://api.github.com/repos/matrix-org/go-neb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matrix-org/go-neb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matrix-org/go-neb/teams","hooks_url":"https://api.github.com/repos/matrix-org/go-neb/hooks","issue_events_url":"https://api.github.com/repos/matrix-org/go-neb/issues/events{/number}","events_url":"https://api.github.com/repos/matrix-org/go-neb/events","assignees_url":"https://api.github.com/repos/matrix-org/go-neb/assignees{/user}","branches_url":"https://api.github.com/repos/matrix-org/go-neb/branches{/branch}","tags_url":"https://api.github.com/repos/matrix-org/go-neb/tags","blobs_url":"https://api.github.com/repos/matrix-org/go-neb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matrix-org/go-neb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matrix-org/go-neb/git/refs{/sha}","trees_url":"https://api.github.com/repos/matrix-org/go-neb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matrix-org/go-neb/statuses/{sha}","languages_url":"https://api.github.com/repos/matrix-org/go-neb/languages","stargazers_url":"https://api.github.com/repos/matrix-org/go-neb/stargazers","contributors_url":"https://api.github.com/repos/matrix-org/go-neb/contributors","subscribers_url":"https://api.github.com/repos/matrix-org/go-neb/subscribers","subscription_url":"https://api.github.com/repos/matrix-org/go-neb/subscription","commits_url":"https://api.github.com/repos/matrix-org/go-neb/commits{/sha}","git_commits_url":"https://api.github.com/repos/matrix-org/go-neb/git/commits{/sha}","comments_url":"https://api.github.com/repos/matrix-org/go-neb/comments{/number}","issue_comment_url":"https://api.github.com/repos/matrix-org/go-neb/issues/comments{/number}","contents_url":"https://api.github.com/repos/matrix-org/go-neb/contents/{+path}","compare_url":"https://api.github.com/repos/matrix-org/go-neb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matrix-org/go-neb/merges","archive_url":"https://api.github.com/repos/matrix-org/go-neb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matrix-org/go-neb/downloads","issues_url":"https://api.github.com/repos/matrix-org/go-neb/issues{/number}","pulls_url":"https://api.github.com/repos/matrix-org/go-neb/pulls{/number}","milestones_url":"https://api.github.com/repos/matrix-org/go-neb/milestones{/number}","notifications_url":"https://api.github.com/repos/matrix-org/go-neb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matrix-org/go-neb/labels{/name}","releases_url":"https://api.github.com/repos/matrix-org/go-neb/releases{/id}","deployments_url":"https://api.github.com/repos/matrix-org/go-neb/deployments","created_at":"2016-07-29T09:39:03Z","updated_at":"2016-08-03T12:55:32Z","pushed_at":"2016-08-04T13:18:45Z","git_url":"git://github.com/matrix-org/go-neb.git","ssh_url":"git@github.com:matrix-org/go-neb.git","clone_url":"https://github.com/matrix-org/go-neb.git","svn_url":"https://github.com/matrix-org/go-neb","homepage":null,"size":2180,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matrix-org/go-neb/pulls/6"},"html":{"href":"https://github.com/matrix-org/go-neb/pull/6"},"issue":{"href":"https://api.github.com/repos/matrix-org/go-neb/issues/6"},"comments":{"href":"https://api.github.com/repos/matrix-org/go-neb/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/matrix-org/go-neb/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/matrix-org/go-neb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matrix-org/go-neb/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/matrix-org/go-neb/statuses/36eb21be7cd3733b835d1f5b597480521e5ba809"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"Kegsay","id":7190048,"avatar_url":"https://avatars.githubusercontent.com/u/7190048?v=3","gravatar_id":"","url":"https://api.github.com/users/Kegsay","html_url":"https://github.com/Kegsay","followers_url":"https://api.github.com/users/Kegsay/followers","following_url":"https://api.github.com/users/Kegsay/following{/other_user}","gists_url":"https://api.github.com/users/Kegsay/gists{/gist_id}","starred_url":"https://api.github.com/users/Kegsay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kegsay/subscriptions","organizations_url":"https://api.github.com/users/Kegsay/orgs","repos_url":"https://api.github.com/users/Kegsay/repos","events_url":"https://api.github.com/users/Kegsay/events{/privacy}","received_events_url":"https://api.github.com/users/Kegsay/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":173,"deletions":11,"changed_files":6}}
{"actor":{"display_login":"Kegsay"}}