{"action":"created","comment":{"url":"https://api.github.com/repos/lukegb/mcassoc/pulls/comments/23500291","id":23500291,"diff_hunk":"@@ -27,6 +27,7 @@ import (\n \t\"path\"\n \t\"time\"\n \t\"strings\"\n+\t\"crypto/rand\"","path":"mcassoc_serve.go","position":4,"original_position":4,"commit_id":"febe0b4aff011a362cb3d1d8dd982cd48b35d0e1","original_commit_id":"febe0b4aff011a362cb3d1d8dd982cd48b35d0e1","user":{"login":"lol768","id":2552726,"avatar_url":"https://avatars.githubusercontent.com/u/2552726?v=3","gravatar_id":"","url":"https://api.github.com/users/lol768","html_url":"https://github.com/lol768","followers_url":"https://api.github.com/users/lol768/followers","following_url":"https://api.github.com/users/lol768/following{/other_user}","gists_url":"https://api.github.com/users/lol768/gists{/gist_id}","starred_url":"https://api.github.com/users/lol768/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lol768/subscriptions","organizations_url":"https://api.github.com/users/lol768/orgs","repos_url":"https://api.github.com/users/lol768/repos","events_url":"https://api.github.com/users/lol768/events{/privacy}","received_events_url":"https://api.github.com/users/lol768/received_events","type":"User","site_admin":false},"body":"Generates cryptographically random identifier for session","created_at":"2015-01-24T23:17:00Z","updated_at":"2015-01-24T23:17:00Z","html_url":"https://github.com/lukegb/mcassoc/pull/6#discussion_r23500291","pull_request_url":"https://api.github.com/repos/lukegb/mcassoc/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/lukegb/mcassoc/pulls/comments/23500291"},"html":{"href":"https://github.com/lukegb/mcassoc/pull/6#discussion_r23500291"},"pull_request":{"href":"https://api.github.com/repos/lukegb/mcassoc/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/lukegb/mcassoc/pulls/6","id":27982933,"html_url":"https://github.com/lukegb/mcassoc/pull/6","diff_url":"https://github.com/lukegb/mcassoc/pull/6.diff","patch_url":"https://github.com/lukegb/mcassoc/pull/6.patch","issue_url":"https://api.github.com/repos/lukegb/mcassoc/issues/6","number":6,"state":"open","locked":false,"title":"Add DNS (TXT record) verification system","user":{"login":"lol768","id":2552726,"avatar_url":"https://avatars.githubusercontent.com/u/2552726?v=3","gravatar_id":"","url":"https://api.github.com/users/lol768","html_url":"https://github.com/lol768","followers_url":"https://api.github.com/users/lol768/followers","following_url":"https://api.github.com/users/lol768/following{/other_user}","gists_url":"https://api.github.com/users/lol768/gists{/gist_id}","starred_url":"https://api.github.com/users/lol768/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lol768/subscriptions","organizations_url":"https://api.github.com/users/lol768/orgs","repos_url":"https://api.github.com/users/lol768/repos","events_url":"https://api.github.com/users/lol768/events{/privacy}","received_events_url":"https://api.github.com/users/lol768/received_events","type":"User","site_admin":false},"body":"Allow users to pick between HTTP and TXT record verification types. Since TXT records want equals signs escaped we also pad the key such that we never get such symbols in the base64 representation.\r\n\r\nAlso includes some styling & JS changes. Also fixed a potential issue with the key generation where it was using the port in addition to the remote IP address. This got very annoying because I'd go and create the TXT record, refresh the page and find the key had changed.\r\n\r\n![](https://i.imgur.com/TwW2UiT.png)","created_at":"2015-01-24T21:49:12Z","updated_at":"2015-01-24T23:17:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93581b7b5a3a6c26c1445a1f490f952aa30f8913","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lukegb/mcassoc/pulls/6/commits","review_comments_url":"https://api.github.com/repos/lukegb/mcassoc/pulls/6/comments","review_comment_url":"https://api.github.com/repos/lukegb/mcassoc/pulls/comments/{number}","comments_url":"https://api.github.com/repos/lukegb/mcassoc/issues/6/comments","statuses_url":"https://api.github.com/repos/lukegb/mcassoc/statuses/febe0b4aff011a362cb3d1d8dd982cd48b35d0e1","head":{"label":"lol768:master","ref":"master","sha":"febe0b4aff011a362cb3d1d8dd982cd48b35d0e1","user":{"login":"lol768","id":2552726,"avatar_url":"https://avatars.githubusercontent.com/u/2552726?v=3","gravatar_id":"","url":"https://api.github.com/users/lol768","html_url":"https://github.com/lol768","followers_url":"https://api.github.com/users/lol768/followers","following_url":"https://api.github.com/users/lol768/following{/other_user}","gists_url":"https://api.github.com/users/lol768/gists{/gist_id}","starred_url":"https://api.github.com/users/lol768/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lol768/subscriptions","organizations_url":"https://api.github.com/users/lol768/orgs","repos_url":"https://api.github.com/users/lol768/repos","events_url":"https://api.github.com/users/lol768/events{/privacy}","received_events_url":"https://api.github.com/users/lol768/received_events","type":"User","site_admin":false},"repo":{"id":22734867,"name":"mcassoc","full_name":"lol768/mcassoc","owner":{"login":"lol768","id":2552726,"avatar_url":"https://avatars.githubusercontent.com/u/2552726?v=3","gravatar_id":"","url":"https://api.github.com/users/lol768","html_url":"https://github.com/lol768","followers_url":"https://api.github.com/users/lol768/followers","following_url":"https://api.github.com/users/lol768/following{/other_user}","gists_url":"https://api.github.com/users/lol768/gists{/gist_id}","starred_url":"https://api.github.com/users/lol768/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lol768/subscriptions","organizations_url":"https://api.github.com/users/lol768/orgs","repos_url":"https://api.github.com/users/lol768/repos","events_url":"https://api.github.com/users/lol768/events{/privacy}","received_events_url":"https://api.github.com/users/lol768/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lol768/mcassoc","description":"","fork":true,"url":"https://api.github.com/repos/lol768/mcassoc","forks_url":"https://api.github.com/repos/lol768/mcassoc/forks","keys_url":"https://api.github.com/repos/lol768/mcassoc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lol768/mcassoc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lol768/mcassoc/teams","hooks_url":"https://api.github.com/repos/lol768/mcassoc/hooks","issue_events_url":"https://api.github.com/repos/lol768/mcassoc/issues/events{/number}","events_url":"https://api.github.com/repos/lol768/mcassoc/events","assignees_url":"https://api.github.com/repos/lol768/mcassoc/assignees{/user}","branches_url":"https://api.github.com/repos/lol768/mcassoc/branches{/branch}","tags_url":"https://api.github.com/repos/lol768/mcassoc/tags","blobs_url":"https://api.github.com/repos/lol768/mcassoc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lol768/mcassoc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lol768/mcassoc/git/refs{/sha}","trees_url":"https://api.github.com/repos/lol768/mcassoc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lol768/mcassoc/statuses/{sha}","languages_url":"https://api.github.com/repos/lol768/mcassoc/languages","stargazers_url":"https://api.github.com/repos/lol768/mcassoc/stargazers","contributors_url":"https://api.github.com/repos/lol768/mcassoc/contributors","subscribers_url":"https://api.github.com/repos/lol768/mcassoc/subscribers","subscription_url":"https://api.github.com/repos/lol768/mcassoc/subscription","commits_url":"https://api.github.com/repos/lol768/mcassoc/commits{/sha}","git_commits_url":"https://api.github.com/repos/lol768/mcassoc/git/commits{/sha}","comments_url":"https://api.github.com/repos/lol768/mcassoc/comments{/number}","issue_comment_url":"https://api.github.com/repos/lol768/mcassoc/issues/comments/{number}","contents_url":"https://api.github.com/repos/lol768/mcassoc/contents/{+path}","compare_url":"https://api.github.com/repos/lol768/mcassoc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lol768/mcassoc/merges","archive_url":"https://api.github.com/repos/lol768/mcassoc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lol768/mcassoc/downloads","issues_url":"https://api.github.com/repos/lol768/mcassoc/issues{/number}","pulls_url":"https://api.github.com/repos/lol768/mcassoc/pulls{/number}","milestones_url":"https://api.github.com/repos/lol768/mcassoc/milestones{/number}","notifications_url":"https://api.github.com/repos/lol768/mcassoc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lol768/mcassoc/labels{/name}","releases_url":"https://api.github.com/repos/lol768/mcassoc/releases{/id}","created_at":"2014-08-07T20:04:26Z","updated_at":"2015-01-24T23:13:40Z","pushed_at":"2015-01-24T23:13:40Z","git_url":"git://github.com/lol768/mcassoc.git","ssh_url":"git@github.com:lol768/mcassoc.git","clone_url":"https://github.com/lol768/mcassoc.git","svn_url":"https://github.com/lol768/mcassoc","homepage":null,"size":290,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"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":"lukegb:master","ref":"master","sha":"97a101eb44384c83194ba4f6296f28363443e276","user":{"login":"lukegb","id":246745,"avatar_url":"https://avatars.githubusercontent.com/u/246745?v=3","gravatar_id":"","url":"https://api.github.com/users/lukegb","html_url":"https://github.com/lukegb","followers_url":"https://api.github.com/users/lukegb/followers","following_url":"https://api.github.com/users/lukegb/following{/other_user}","gists_url":"https://api.github.com/users/lukegb/gists{/gist_id}","starred_url":"https://api.github.com/users/lukegb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukegb/subscriptions","organizations_url":"https://api.github.com/users/lukegb/orgs","repos_url":"https://api.github.com/users/lukegb/repos","events_url":"https://api.github.com/users/lukegb/events{/privacy}","received_events_url":"https://api.github.com/users/lukegb/received_events","type":"User","site_admin":false},"repo":{"id":18656143,"name":"mcassoc","full_name":"lukegb/mcassoc","owner":{"login":"lukegb","id":246745,"avatar_url":"https://avatars.githubusercontent.com/u/246745?v=3","gravatar_id":"","url":"https://api.github.com/users/lukegb","html_url":"https://github.com/lukegb","followers_url":"https://api.github.com/users/lukegb/followers","following_url":"https://api.github.com/users/lukegb/following{/other_user}","gists_url":"https://api.github.com/users/lukegb/gists{/gist_id}","starred_url":"https://api.github.com/users/lukegb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukegb/subscriptions","organizations_url":"https://api.github.com/users/lukegb/orgs","repos_url":"https://api.github.com/users/lukegb/repos","events_url":"https://api.github.com/users/lukegb/events{/privacy}","received_events_url":"https://api.github.com/users/lukegb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukegb/mcassoc","description":"","fork":false,"url":"https://api.github.com/repos/lukegb/mcassoc","forks_url":"https://api.github.com/repos/lukegb/mcassoc/forks","keys_url":"https://api.github.com/repos/lukegb/mcassoc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukegb/mcassoc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukegb/mcassoc/teams","hooks_url":"https://api.github.com/repos/lukegb/mcassoc/hooks","issue_events_url":"https://api.github.com/repos/lukegb/mcassoc/issues/events{/number}","events_url":"https://api.github.com/repos/lukegb/mcassoc/events","assignees_url":"https://api.github.com/repos/lukegb/mcassoc/assignees{/user}","branches_url":"https://api.github.com/repos/lukegb/mcassoc/branches{/branch}","tags_url":"https://api.github.com/repos/lukegb/mcassoc/tags","blobs_url":"https://api.github.com/repos/lukegb/mcassoc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukegb/mcassoc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukegb/mcassoc/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukegb/mcassoc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukegb/mcassoc/statuses/{sha}","languages_url":"https://api.github.com/repos/lukegb/mcassoc/languages","stargazers_url":"https://api.github.com/repos/lukegb/mcassoc/stargazers","contributors_url":"https://api.github.com/repos/lukegb/mcassoc/contributors","subscribers_url":"https://api.github.com/repos/lukegb/mcassoc/subscribers","subscription_url":"https://api.github.com/repos/lukegb/mcassoc/subscription","commits_url":"https://api.github.com/repos/lukegb/mcassoc/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukegb/mcassoc/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukegb/mcassoc/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukegb/mcassoc/issues/comments/{number}","contents_url":"https://api.github.com/repos/lukegb/mcassoc/contents/{+path}","compare_url":"https://api.github.com/repos/lukegb/mcassoc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukegb/mcassoc/merges","archive_url":"https://api.github.com/repos/lukegb/mcassoc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukegb/mcassoc/downloads","issues_url":"https://api.github.com/repos/lukegb/mcassoc/issues{/number}","pulls_url":"https://api.github.com/repos/lukegb/mcassoc/pulls{/number}","milestones_url":"https://api.github.com/repos/lukegb/mcassoc/milestones{/number}","notifications_url":"https://api.github.com/repos/lukegb/mcassoc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukegb/mcassoc/labels{/name}","releases_url":"https://api.github.com/repos/lukegb/mcassoc/releases{/id}","created_at":"2014-04-10T23:51:14Z","updated_at":"2014-12-29T02:23:42Z","pushed_at":"2014-12-29T02:23:42Z","git_url":"git://github.com/lukegb/mcassoc.git","ssh_url":"git@github.com:lukegb/mcassoc.git","clone_url":"https://github.com/lukegb/mcassoc.git","svn_url":"https://github.com/lukegb/mcassoc","homepage":null,"size":379,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lukegb/mcassoc/pulls/6"},"html":{"href":"https://github.com/lukegb/mcassoc/pull/6"},"issue":{"href":"https://api.github.com/repos/lukegb/mcassoc/issues/6"},"comments":{"href":"https://api.github.com/repos/lukegb/mcassoc/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/lukegb/mcassoc/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/lukegb/mcassoc/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/lukegb/mcassoc/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/lukegb/mcassoc/statuses/febe0b4aff011a362cb3d1d8dd982cd48b35d0e1"}}}}