{"action":"created","comment":{"url":"https://api.github.com/repos/starkandwayne/shield/pulls/comments/145136888","pull_request_review_id":69891630,"id":145136888,"diff_hunk":"@@ -102,30 +103,20 @@ func Login(username, password string) (sessionID string, user *AuthIDOutput, err\n \t\tpanic(\"Could not marshal auth struct that we JUST made\")\n \t}\n \n-\treq, err := http.NewRequest(\"POST\", uri.String(), bytes.NewReader(j))\n+\tvar req *http.Request\n+\treq, err = http.NewRequest(\"POST\", uri.String(), bytes.NewReader(j))","path":"api/access.go","position":17,"original_position":17,"commit_id":"e4e6581c5ee5b68202c095a99f4ffba944cd418d","original_commit_id":"e4e6581c5ee5b68202c095a99f4ffba944cd418d","user":{"login":"thomasmmitchell","id":12000017,"avatar_url":"https://avatars3.githubusercontent.com/u/12000017?v=4","gravatar_id":"","url":"https://api.github.com/users/thomasmmitchell","html_url":"https://github.com/thomasmmitchell","followers_url":"https://api.github.com/users/thomasmmitchell/followers","following_url":"https://api.github.com/users/thomasmmitchell/following{/other_user}","gists_url":"https://api.github.com/users/thomasmmitchell/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasmmitchell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasmmitchell/subscriptions","organizations_url":"https://api.github.com/users/thomasmmitchell/orgs","repos_url":"https://api.github.com/users/thomasmmitchell/repos","events_url":"https://api.github.com/users/thomasmmitchell/events{/privacy}","received_events_url":"https://api.github.com/users/thomasmmitchell/received_events","type":"User","site_admin":false},"body":"Trying not to shadow err","created_at":"2017-10-17T13:53:17Z","updated_at":"2017-10-17T13:53:17Z","html_url":"https://github.com/starkandwayne/shield/pull/354#discussion_r145136888","pull_request_url":"https://api.github.com/repos/starkandwayne/shield/pulls/354","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/starkandwayne/shield/pulls/comments/145136888"},"html":{"href":"https://github.com/starkandwayne/shield/pull/354#discussion_r145136888"},"pull_request":{"href":"https://api.github.com/repos/starkandwayne/shield/pulls/354"}},"in_reply_to_id":145134180},"pull_request":{"url":"https://api.github.com/repos/starkandwayne/shield/pulls/354","id":147033803,"html_url":"https://github.com/starkandwayne/shield/pull/354","diff_url":"https://github.com/starkandwayne/shield/pull/354.diff","patch_url":"https://github.com/starkandwayne/shield/pull/354.patch","issue_url":"https://api.github.com/repos/starkandwayne/shield/issues/354","number":354,"state":"open","locked":false,"title":"Token auth through CLI","user":{"login":"thomasmmitchell","id":12000017,"avatar_url":"https://avatars3.githubusercontent.com/u/12000017?v=4","gravatar_id":"","url":"https://api.github.com/users/thomasmmitchell","html_url":"https://github.com/thomasmmitchell","followers_url":"https://api.github.com/users/thomasmmitchell/followers","following_url":"https://api.github.com/users/thomasmmitchell/following{/other_user}","gists_url":"https://api.github.com/users/thomasmmitchell/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasmmitchell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasmmitchell/subscriptions","organizations_url":"https://api.github.com/users/thomasmmitchell/orgs","repos_url":"https://api.github.com/users/thomasmmitchell/repos","events_url":"https://api.github.com/users/thomasmmitchell/events{/privacy}","received_events_url":"https://api.github.com/users/thomasmmitchell/received_events","type":"User","site_admin":false},"body":"* Token auth provider now does auth on its init/cli endpoint. Its redir\r\nendpoint returns an error and shouldn't be used.\r\n* API library had its auth backend detection updated, and a flow was\r\nadded for performing token auth on an auth backend.\r\n* The CLI can now auth to a token provider with a --provider flag (and\r\nan optional --token flag).\r\n* Fixed a minor bug with SHIELD whoami where sysrole wasn't populating.\r\n* fixed testdev config to properly configure token backend\r\n* Added error check for token backend if no tokens were configured","created_at":"2017-10-17T13:11:22Z","updated_at":"2017-10-17T13:53:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"787e704c0528460d54aefb0e16f5c66a18163741","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/starkandwayne/shield/pulls/354/commits","review_comments_url":"https://api.github.com/repos/starkandwayne/shield/pulls/354/comments","review_comment_url":"https://api.github.com/repos/starkandwayne/shield/pulls/comments{/number}","comments_url":"https://api.github.com/repos/starkandwayne/shield/issues/354/comments","statuses_url":"https://api.github.com/repos/starkandwayne/shield/statuses/e4e6581c5ee5b68202c095a99f4ffba944cd418d","head":{"label":"starkandwayne:token-auth-cli","ref":"token-auth-cli","sha":"e4e6581c5ee5b68202c095a99f4ffba944cd418d","user":{"login":"starkandwayne","id":2721362,"avatar_url":"https://avatars3.githubusercontent.com/u/2721362?v=4","gravatar_id":"","url":"https://api.github.com/users/starkandwayne","html_url":"https://github.com/starkandwayne","followers_url":"https://api.github.com/users/starkandwayne/followers","following_url":"https://api.github.com/users/starkandwayne/following{/other_user}","gists_url":"https://api.github.com/users/starkandwayne/gists{/gist_id}","starred_url":"https://api.github.com/users/starkandwayne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starkandwayne/subscriptions","organizations_url":"https://api.github.com/users/starkandwayne/orgs","repos_url":"https://api.github.com/users/starkandwayne/repos","events_url":"https://api.github.com/users/starkandwayne/events{/privacy}","received_events_url":"https://api.github.com/users/starkandwayne/received_events","type":"Organization","site_admin":false},"repo":{"id":44686588,"name":"shield","full_name":"starkandwayne/shield","owner":{"login":"starkandwayne","id":2721362,"avatar_url":"https://avatars3.githubusercontent.com/u/2721362?v=4","gravatar_id":"","url":"https://api.github.com/users/starkandwayne","html_url":"https://github.com/starkandwayne","followers_url":"https://api.github.com/users/starkandwayne/followers","following_url":"https://api.github.com/users/starkandwayne/following{/other_user}","gists_url":"https://api.github.com/users/starkandwayne/gists{/gist_id}","starred_url":"https://api.github.com/users/starkandwayne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starkandwayne/subscriptions","organizations_url":"https://api.github.com/users/starkandwayne/orgs","repos_url":"https://api.github.com/users/starkandwayne/repos","events_url":"https://api.github.com/users/starkandwayne/events{/privacy}","received_events_url":"https://api.github.com/users/starkandwayne/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/starkandwayne/shield","description":"A standalone system that can perform backup and restore functions for a wide variety of pluggable data systems","fork":false,"url":"https://api.github.com/repos/starkandwayne/shield","forks_url":"https://api.github.com/repos/starkandwayne/shield/forks","keys_url":"https://api.github.com/repos/starkandwayne/shield/keys{/key_id}","collaborators_url":"https://api.github.com/repos/starkandwayne/shield/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/starkandwayne/shield/teams","hooks_url":"https://api.github.com/repos/starkandwayne/shield/hooks","issue_events_url":"https://api.github.com/repos/starkandwayne/shield/issues/events{/number}","events_url":"https://api.github.com/repos/starkandwayne/shield/events","assignees_url":"https://api.github.com/repos/starkandwayne/shield/assignees{/user}","branches_url":"https://api.github.com/repos/starkandwayne/shield/branches{/branch}","tags_url":"https://api.github.com/repos/starkandwayne/shield/tags","blobs_url":"https://api.github.com/repos/starkandwayne/shield/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/starkandwayne/shield/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/starkandwayne/shield/git/refs{/sha}","trees_url":"https://api.github.com/repos/starkandwayne/shield/git/trees{/sha}","statuses_url":"https://api.github.com/repos/starkandwayne/shield/statuses/{sha}","languages_url":"https://api.github.com/repos/starkandwayne/shield/languages","stargazers_url":"https://api.github.com/repos/starkandwayne/shield/stargazers","contributors_url":"https://api.github.com/repos/starkandwayne/shield/contributors","subscribers_url":"https://api.github.com/repos/starkandwayne/shield/subscribers","subscription_url":"https://api.github.com/repos/starkandwayne/shield/subscription","commits_url":"https://api.github.com/repos/starkandwayne/shield/commits{/sha}","git_commits_url":"https://api.github.com/repos/starkandwayne/shield/git/commits{/sha}","comments_url":"https://api.github.com/repos/starkandwayne/shield/comments{/number}","issue_comment_url":"https://api.github.com/repos/starkandwayne/shield/issues/comments{/number}","contents_url":"https://api.github.com/repos/starkandwayne/shield/contents/{+path}","compare_url":"https://api.github.com/repos/starkandwayne/shield/compare/{base}...{head}","merges_url":"https://api.github.com/repos/starkandwayne/shield/merges","archive_url":"https://api.github.com/repos/starkandwayne/shield/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/starkandwayne/shield/downloads","issues_url":"https://api.github.com/repos/starkandwayne/shield/issues{/number}","pulls_url":"https://api.github.com/repos/starkandwayne/shield/pulls{/number}","milestones_url":"https://api.github.com/repos/starkandwayne/shield/milestones{/number}","notifications_url":"https://api.github.com/repos/starkandwayne/shield/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/starkandwayne/shield/labels{/name}","releases_url":"https://api.github.com/repos/starkandwayne/shield/releases{/id}","deployments_url":"https://api.github.com/repos/starkandwayne/shield/deployments","created_at":"2015-10-21T15:39:36Z","updated_at":"2017-10-12T12:49:47Z","pushed_at":"2017-10-17T13:14:28Z","git_url":"git://github.com/starkandwayne/shield.git","ssh_url":"git@github.com:starkandwayne/shield.git","clone_url":"https://github.com/starkandwayne/shield.git","svn_url":"https://github.com/starkandwayne/shield","homepage":"","size":13749,"stargazers_count":141,"watchers_count":141,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":27,"forks":21,"open_issues":27,"watchers":141,"default_branch":"master"}},"base":{"label":"starkandwayne:v8","ref":"v8","sha":"607b108ed6a0fb43ad33caf498c6bd75996f9ac9","user":{"login":"starkandwayne","id":2721362,"avatar_url":"https://avatars3.githubusercontent.com/u/2721362?v=4","gravatar_id":"","url":"https://api.github.com/users/starkandwayne","html_url":"https://github.com/starkandwayne","followers_url":"https://api.github.com/users/starkandwayne/followers","following_url":"https://api.github.com/users/starkandwayne/following{/other_user}","gists_url":"https://api.github.com/users/starkandwayne/gists{/gist_id}","starred_url":"https://api.github.com/users/starkandwayne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starkandwayne/subscriptions","organizations_url":"https://api.github.com/users/starkandwayne/orgs","repos_url":"https://api.github.com/users/starkandwayne/repos","events_url":"https://api.github.com/users/starkandwayne/events{/privacy}","received_events_url":"https://api.github.com/users/starkandwayne/received_events","type":"Organization","site_admin":false},"repo":{"id":44686588,"name":"shield","full_name":"starkandwayne/shield","owner":{"login":"starkandwayne","id":2721362,"avatar_url":"https://avatars3.githubusercontent.com/u/2721362?v=4","gravatar_id":"","url":"https://api.github.com/users/starkandwayne","html_url":"https://github.com/starkandwayne","followers_url":"https://api.github.com/users/starkandwayne/followers","following_url":"https://api.github.com/users/starkandwayne/following{/other_user}","gists_url":"https://api.github.com/users/starkandwayne/gists{/gist_id}","starred_url":"https://api.github.com/users/starkandwayne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starkandwayne/subscriptions","organizations_url":"https://api.github.com/users/starkandwayne/orgs","repos_url":"https://api.github.com/users/starkandwayne/repos","events_url":"https://api.github.com/users/starkandwayne/events{/privacy}","received_events_url":"https://api.github.com/users/starkandwayne/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/starkandwayne/shield","description":"A standalone system that can perform backup and restore functions for a wide variety of pluggable data systems","fork":false,"url":"https://api.github.com/repos/starkandwayne/shield","forks_url":"https://api.github.com/repos/starkandwayne/shield/forks","keys_url":"https://api.github.com/repos/starkandwayne/shield/keys{/key_id}","collaborators_url":"https://api.github.com/repos/starkandwayne/shield/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/starkandwayne/shield/teams","hooks_url":"https://api.github.com/repos/starkandwayne/shield/hooks","issue_events_url":"https://api.github.com/repos/starkandwayne/shield/issues/events{/number}","events_url":"https://api.github.com/repos/starkandwayne/shield/events","assignees_url":"https://api.github.com/repos/starkandwayne/shield/assignees{/user}","branches_url":"https://api.github.com/repos/starkandwayne/shield/branches{/branch}","tags_url":"https://api.github.com/repos/starkandwayne/shield/tags","blobs_url":"https://api.github.com/repos/starkandwayne/shield/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/starkandwayne/shield/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/starkandwayne/shield/git/refs{/sha}","trees_url":"https://api.github.com/repos/starkandwayne/shield/git/trees{/sha}","statuses_url":"https://api.github.com/repos/starkandwayne/shield/statuses/{sha}","languages_url":"https://api.github.com/repos/starkandwayne/shield/languages","stargazers_url":"https://api.github.com/repos/starkandwayne/shield/stargazers","contributors_url":"https://api.github.com/repos/starkandwayne/shield/contributors","subscribers_url":"https://api.github.com/repos/starkandwayne/shield/subscribers","subscription_url":"https://api.github.com/repos/starkandwayne/shield/subscription","commits_url":"https://api.github.com/repos/starkandwayne/shield/commits{/sha}","git_commits_url":"https://api.github.com/repos/starkandwayne/shield/git/commits{/sha}","comments_url":"https://api.github.com/repos/starkandwayne/shield/comments{/number}","issue_comment_url":"https://api.github.com/repos/starkandwayne/shield/issues/comments{/number}","contents_url":"https://api.github.com/repos/starkandwayne/shield/contents/{+path}","compare_url":"https://api.github.com/repos/starkandwayne/shield/compare/{base}...{head}","merges_url":"https://api.github.com/repos/starkandwayne/shield/merges","archive_url":"https://api.github.com/repos/starkandwayne/shield/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/starkandwayne/shield/downloads","issues_url":"https://api.github.com/repos/starkandwayne/shield/issues{/number}","pulls_url":"https://api.github.com/repos/starkandwayne/shield/pulls{/number}","milestones_url":"https://api.github.com/repos/starkandwayne/shield/milestones{/number}","notifications_url":"https://api.github.com/repos/starkandwayne/shield/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/starkandwayne/shield/labels{/name}","releases_url":"https://api.github.com/repos/starkandwayne/shield/releases{/id}","deployments_url":"https://api.github.com/repos/starkandwayne/shield/deployments","created_at":"2015-10-21T15:39:36Z","updated_at":"2017-10-12T12:49:47Z","pushed_at":"2017-10-17T13:14:28Z","git_url":"git://github.com/starkandwayne/shield.git","ssh_url":"git@github.com:starkandwayne/shield.git","clone_url":"https://github.com/starkandwayne/shield.git","svn_url":"https://github.com/starkandwayne/shield","homepage":"","size":13749,"stargazers_count":141,"watchers_count":141,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":27,"forks":21,"open_issues":27,"watchers":141,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/starkandwayne/shield/pulls/354"},"html":{"href":"https://github.com/starkandwayne/shield/pull/354"},"issue":{"href":"https://api.github.com/repos/starkandwayne/shield/issues/354"},"comments":{"href":"https://api.github.com/repos/starkandwayne/shield/issues/354/comments"},"review_comments":{"href":"https://api.github.com/repos/starkandwayne/shield/pulls/354/comments"},"review_comment":{"href":"https://api.github.com/repos/starkandwayne/shield/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/starkandwayne/shield/pulls/354/commits"},"statuses":{"href":"https://api.github.com/repos/starkandwayne/shield/statuses/e4e6581c5ee5b68202c095a99f4ffba944cd418d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"thomasmmitchell"}}