{"action":"created","comment":{"url":"https://api.github.com/repos/bitly/oauth2_proxy/pulls/comments/38689508","id":38689508,"diff_hunk":"@@ -6,17 +6,25 @@ import (\n \t\"encoding/json\"\n \t\"errors\"\n \t\"fmt\"\n+\t\"io\"\n \t\"io/ioutil\"\n \t\"log\"\n \t\"net/http\"\n \t\"net/url\"\n \t\"strings\"\n \t\"time\"\n+\n+\t\"golang.org/x/oauth2\"","path":"providers/google.go","position":12,"original_position":12,"commit_id":"514d1af8859cec4e4058a39db60b608356cdc773","original_commit_id":"514d1af8859cec4e4058a39db60b608356cdc773","user":{"login":"jehiah","id":45028,"avatar_url":"https://avatars.githubusercontent.com/u/45028?v=3","gravatar_id":"","url":"https://api.github.com/users/jehiah","html_url":"https://github.com/jehiah","followers_url":"https://api.github.com/users/jehiah/followers","following_url":"https://api.github.com/users/jehiah/following{/other_user}","gists_url":"https://api.github.com/users/jehiah/gists{/gist_id}","starred_url":"https://api.github.com/users/jehiah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jehiah/subscriptions","organizations_url":"https://api.github.com/users/jehiah/orgs","repos_url":"https://api.github.com/users/jehiah/repos","events_url":"https://api.github.com/users/jehiah/events{/privacy}","received_events_url":"https://api.github.com/users/jehiah/received_events","type":"User","site_admin":false},"body":"@jburnham can you capture these dependencies in the Godeps file?","created_at":"2015-09-03T19:59:47Z","updated_at":"2015-09-03T19:59:47Z","html_url":"https://github.com/bitly/oauth2_proxy/pull/139#discussion_r38689508","pull_request_url":"https://api.github.com/repos/bitly/oauth2_proxy/pulls/139","_links":{"self":{"href":"https://api.github.com/repos/bitly/oauth2_proxy/pulls/comments/38689508"},"html":{"href":"https://github.com/bitly/oauth2_proxy/pull/139#discussion_r38689508"},"pull_request":{"href":"https://api.github.com/repos/bitly/oauth2_proxy/pulls/139"}}},"pull_request":{"url":"https://api.github.com/repos/bitly/oauth2_proxy/pulls/139","id":43374268,"html_url":"https://github.com/bitly/oauth2_proxy/pull/139","diff_url":"https://github.com/bitly/oauth2_proxy/pull/139.diff","patch_url":"https://github.com/bitly/oauth2_proxy/pull/139.patch","issue_url":"https://api.github.com/repos/bitly/oauth2_proxy/issues/139","number":139,"state":"open","locked":false,"title":"[RFC] google: Support restricting access to a specific group","user":{"login":"jburnham","id":254022,"avatar_url":"https://avatars.githubusercontent.com/u/254022?v=3","gravatar_id":"","url":"https://api.github.com/users/jburnham","html_url":"https://github.com/jburnham","followers_url":"https://api.github.com/users/jburnham/followers","following_url":"https://api.github.com/users/jburnham/following{/other_user}","gists_url":"https://api.github.com/users/jburnham/gists{/gist_id}","starred_url":"https://api.github.com/users/jburnham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jburnham/subscriptions","organizations_url":"https://api.github.com/users/jburnham/orgs","repos_url":"https://api.github.com/users/jburnham/repos","events_url":"https://api.github.com/users/jburnham/events{/privacy}","received_events_url":"https://api.github.com/users/jburnham/received_events","type":"User","site_admin":false},"body":"This change should be backwards compatible and only when you pass the three new flags will Google group validation happen.\r\n\r\npartially implements features requested in #28 ( getting a list of all groups a user is a member of does not seems to be a single api call and would require listing all groups and then for all groups, querying the group to see if the user is in that group )\r\n\r\npotential future improvements (not planned for this PR)\r\n* support orgunits","created_at":"2015-08-26T08:02:50Z","updated_at":"2015-09-03T19:59:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"69abcc485a82aa42d2909a6177300bb7385daf78","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bitly/oauth2_proxy/pulls/139/commits","review_comments_url":"https://api.github.com/repos/bitly/oauth2_proxy/pulls/139/comments","review_comment_url":"https://api.github.com/repos/bitly/oauth2_proxy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bitly/oauth2_proxy/issues/139/comments","statuses_url":"https://api.github.com/repos/bitly/oauth2_proxy/statuses/514d1af8859cec4e4058a39db60b608356cdc773","head":{"label":"jburnham:google_group_auth","ref":"google_group_auth","sha":"514d1af8859cec4e4058a39db60b608356cdc773","user":{"login":"jburnham","id":254022,"avatar_url":"https://avatars.githubusercontent.com/u/254022?v=3","gravatar_id":"","url":"https://api.github.com/users/jburnham","html_url":"https://github.com/jburnham","followers_url":"https://api.github.com/users/jburnham/followers","following_url":"https://api.github.com/users/jburnham/following{/other_user}","gists_url":"https://api.github.com/users/jburnham/gists{/gist_id}","starred_url":"https://api.github.com/users/jburnham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jburnham/subscriptions","organizations_url":"https://api.github.com/users/jburnham/orgs","repos_url":"https://api.github.com/users/jburnham/repos","events_url":"https://api.github.com/users/jburnham/events{/privacy}","received_events_url":"https://api.github.com/users/jburnham/received_events","type":"User","site_admin":false},"repo":{"id":39622906,"name":"oauth2_proxy","full_name":"jburnham/oauth2_proxy","owner":{"login":"jburnham","id":254022,"avatar_url":"https://avatars.githubusercontent.com/u/254022?v=3","gravatar_id":"","url":"https://api.github.com/users/jburnham","html_url":"https://github.com/jburnham","followers_url":"https://api.github.com/users/jburnham/followers","following_url":"https://api.github.com/users/jburnham/following{/other_user}","gists_url":"https://api.github.com/users/jburnham/gists{/gist_id}","starred_url":"https://api.github.com/users/jburnham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jburnham/subscriptions","organizations_url":"https://api.github.com/users/jburnham/orgs","repos_url":"https://api.github.com/users/jburnham/repos","events_url":"https://api.github.com/users/jburnham/events{/privacy}","received_events_url":"https://api.github.com/users/jburnham/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jburnham/oauth2_proxy","description":"A reverse proxy that provides authentication with Google, Github or other provider","fork":true,"url":"https://api.github.com/repos/jburnham/oauth2_proxy","forks_url":"https://api.github.com/repos/jburnham/oauth2_proxy/forks","keys_url":"https://api.github.com/repos/jburnham/oauth2_proxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jburnham/oauth2_proxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jburnham/oauth2_proxy/teams","hooks_url":"https://api.github.com/repos/jburnham/oauth2_proxy/hooks","issue_events_url":"https://api.github.com/repos/jburnham/oauth2_proxy/issues/events{/number}","events_url":"https://api.github.com/repos/jburnham/oauth2_proxy/events","assignees_url":"https://api.github.com/repos/jburnham/oauth2_proxy/assignees{/user}","branches_url":"https://api.github.com/repos/jburnham/oauth2_proxy/branches{/branch}","tags_url":"https://api.github.com/repos/jburnham/oauth2_proxy/tags","blobs_url":"https://api.github.com/repos/jburnham/oauth2_proxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jburnham/oauth2_proxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jburnham/oauth2_proxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/jburnham/oauth2_proxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jburnham/oauth2_proxy/statuses/{sha}","languages_url":"https://api.github.com/repos/jburnham/oauth2_proxy/languages","stargazers_url":"https://api.github.com/repos/jburnham/oauth2_proxy/stargazers","contributors_url":"https://api.github.com/repos/jburnham/oauth2_proxy/contributors","subscribers_url":"https://api.github.com/repos/jburnham/oauth2_proxy/subscribers","subscription_url":"https://api.github.com/repos/jburnham/oauth2_proxy/subscription","commits_url":"https://api.github.com/repos/jburnham/oauth2_proxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/jburnham/oauth2_proxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/jburnham/oauth2_proxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/jburnham/oauth2_proxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/jburnham/oauth2_proxy/contents/{+path}","compare_url":"https://api.github.com/repos/jburnham/oauth2_proxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jburnham/oauth2_proxy/merges","archive_url":"https://api.github.com/repos/jburnham/oauth2_proxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jburnham/oauth2_proxy/downloads","issues_url":"https://api.github.com/repos/jburnham/oauth2_proxy/issues{/number}","pulls_url":"https://api.github.com/repos/jburnham/oauth2_proxy/pulls{/number}","milestones_url":"https://api.github.com/repos/jburnham/oauth2_proxy/milestones{/number}","notifications_url":"https://api.github.com/repos/jburnham/oauth2_proxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jburnham/oauth2_proxy/labels{/name}","releases_url":"https://api.github.com/repos/jburnham/oauth2_proxy/releases{/id}","created_at":"2015-07-24T09:16:39Z","updated_at":"2015-07-24T09:16:40Z","pushed_at":"2015-08-28T05:24:20Z","git_url":"git://github.com/jburnham/oauth2_proxy.git","ssh_url":"git@github.com:jburnham/oauth2_proxy.git","clone_url":"https://github.com/jburnham/oauth2_proxy.git","svn_url":"https://github.com/jburnham/oauth2_proxy","homepage":"","size":366,"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":"bitly:master","ref":"master","sha":"ba81a0d30abd1cac1c294758bf196a4a5cd163ff","user":{"login":"bitly","id":251133,"avatar_url":"https://avatars.githubusercontent.com/u/251133?v=3","gravatar_id":"","url":"https://api.github.com/users/bitly","html_url":"https://github.com/bitly","followers_url":"https://api.github.com/users/bitly/followers","following_url":"https://api.github.com/users/bitly/following{/other_user}","gists_url":"https://api.github.com/users/bitly/gists{/gist_id}","starred_url":"https://api.github.com/users/bitly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitly/subscriptions","organizations_url":"https://api.github.com/users/bitly/orgs","repos_url":"https://api.github.com/users/bitly/repos","events_url":"https://api.github.com/users/bitly/events{/privacy}","received_events_url":"https://api.github.com/users/bitly/received_events","type":"Organization","site_admin":false},"repo":{"id":7209439,"name":"oauth2_proxy","full_name":"bitly/oauth2_proxy","owner":{"login":"bitly","id":251133,"avatar_url":"https://avatars.githubusercontent.com/u/251133?v=3","gravatar_id":"","url":"https://api.github.com/users/bitly","html_url":"https://github.com/bitly","followers_url":"https://api.github.com/users/bitly/followers","following_url":"https://api.github.com/users/bitly/following{/other_user}","gists_url":"https://api.github.com/users/bitly/gists{/gist_id}","starred_url":"https://api.github.com/users/bitly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitly/subscriptions","organizations_url":"https://api.github.com/users/bitly/orgs","repos_url":"https://api.github.com/users/bitly/repos","events_url":"https://api.github.com/users/bitly/events{/privacy}","received_events_url":"https://api.github.com/users/bitly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bitly/oauth2_proxy","description":"A reverse proxy that provides authentication with Google, Github or other provider","fork":false,"url":"https://api.github.com/repos/bitly/oauth2_proxy","forks_url":"https://api.github.com/repos/bitly/oauth2_proxy/forks","keys_url":"https://api.github.com/repos/bitly/oauth2_proxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bitly/oauth2_proxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bitly/oauth2_proxy/teams","hooks_url":"https://api.github.com/repos/bitly/oauth2_proxy/hooks","issue_events_url":"https://api.github.com/repos/bitly/oauth2_proxy/issues/events{/number}","events_url":"https://api.github.com/repos/bitly/oauth2_proxy/events","assignees_url":"https://api.github.com/repos/bitly/oauth2_proxy/assignees{/user}","branches_url":"https://api.github.com/repos/bitly/oauth2_proxy/branches{/branch}","tags_url":"https://api.github.com/repos/bitly/oauth2_proxy/tags","blobs_url":"https://api.github.com/repos/bitly/oauth2_proxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bitly/oauth2_proxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bitly/oauth2_proxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/bitly/oauth2_proxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bitly/oauth2_proxy/statuses/{sha}","languages_url":"https://api.github.com/repos/bitly/oauth2_proxy/languages","stargazers_url":"https://api.github.com/repos/bitly/oauth2_proxy/stargazers","contributors_url":"https://api.github.com/repos/bitly/oauth2_proxy/contributors","subscribers_url":"https://api.github.com/repos/bitly/oauth2_proxy/subscribers","subscription_url":"https://api.github.com/repos/bitly/oauth2_proxy/subscription","commits_url":"https://api.github.com/repos/bitly/oauth2_proxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/bitly/oauth2_proxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/bitly/oauth2_proxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/bitly/oauth2_proxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/bitly/oauth2_proxy/contents/{+path}","compare_url":"https://api.github.com/repos/bitly/oauth2_proxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bitly/oauth2_proxy/merges","archive_url":"https://api.github.com/repos/bitly/oauth2_proxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bitly/oauth2_proxy/downloads","issues_url":"https://api.github.com/repos/bitly/oauth2_proxy/issues{/number}","pulls_url":"https://api.github.com/repos/bitly/oauth2_proxy/pulls{/number}","milestones_url":"https://api.github.com/repos/bitly/oauth2_proxy/milestones{/number}","notifications_url":"https://api.github.com/repos/bitly/oauth2_proxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bitly/oauth2_proxy/labels{/name}","releases_url":"https://api.github.com/repos/bitly/oauth2_proxy/releases{/id}","created_at":"2012-12-17T18:01:53Z","updated_at":"2015-09-03T17:28:13Z","pushed_at":"2015-08-28T05:24:21Z","git_url":"git://github.com/bitly/oauth2_proxy.git","ssh_url":"git@github.com:bitly/oauth2_proxy.git","clone_url":"https://github.com/bitly/oauth2_proxy.git","svn_url":"https://github.com/bitly/oauth2_proxy","homepage":"","size":1259,"stargazers_count":728,"watchers_count":728,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":149,"mirror_url":null,"open_issues_count":17,"forks":149,"open_issues":17,"watchers":728,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bitly/oauth2_proxy/pulls/139"},"html":{"href":"https://github.com/bitly/oauth2_proxy/pull/139"},"issue":{"href":"https://api.github.com/repos/bitly/oauth2_proxy/issues/139"},"comments":{"href":"https://api.github.com/repos/bitly/oauth2_proxy/issues/139/comments"},"review_comments":{"href":"https://api.github.com/repos/bitly/oauth2_proxy/pulls/139/comments"},"review_comment":{"href":"https://api.github.com/repos/bitly/oauth2_proxy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bitly/oauth2_proxy/pulls/139/commits"},"statuses":{"href":"https://api.github.com/repos/bitly/oauth2_proxy/statuses/514d1af8859cec4e4058a39db60b608356cdc773"}}}}