{"action":"created","issue":{"url":"https://api.github.com/repos/bitly/google_auth_proxy/issues/61","labels_url":"https://api.github.com/repos/bitly/google_auth_proxy/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/bitly/google_auth_proxy/issues/61/comments","events_url":"https://api.github.com/repos/bitly/google_auth_proxy/issues/61/events","html_url":"https://github.com/bitly/google_auth_proxy/pull/61","id":55238269,"number":61,"title":"Adds User group membership info to headers","user":{"login":"jakeyr","id":282902,"avatar_url":"https://avatars.githubusercontent.com/u/282902?v=3","gravatar_id":"","url":"https://api.github.com/users/jakeyr","html_url":"https://github.com/jakeyr","followers_url":"https://api.github.com/users/jakeyr/followers","following_url":"https://api.github.com/users/jakeyr/following{/other_user}","gists_url":"https://api.github.com/users/jakeyr/gists{/gist_id}","starred_url":"https://api.github.com/users/jakeyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakeyr/subscriptions","organizations_url":"https://api.github.com/users/jakeyr/orgs","repos_url":"https://api.github.com/users/jakeyr/repos","events_url":"https://api.github.com/users/jakeyr/events{/privacy}","received_events_url":"https://api.github.com/users/jakeyr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-23T02:39:24Z","updated_at":"2015-01-23T19:07:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bitly/google_auth_proxy/pulls/61","html_url":"https://github.com/bitly/google_auth_proxy/pull/61","diff_url":"https://github.com/bitly/google_auth_proxy/pull/61.diff","patch_url":"https://github.com/bitly/google_auth_proxy/pull/61.patch"},"body":"This PR uses the google go admin SDK to determine the group memberships of the authenticating user and stores the list of groups in a signed cookie, and then passes that group list (if valid) forward to the upstream server in the HTTP headers.\r\n\r\nSee issue #28.\r\n\r\nNote that this is my first Go code, so if I'm doing things that are not idiomatic or not organized correctly, please let me know and I can update the PR.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/bitly/google_auth_proxy/issues/comments/71246780","html_url":"https://github.com/bitly/google_auth_proxy/pull/61#issuecomment-71246780","issue_url":"https://api.github.com/repos/bitly/google_auth_proxy/issues/61","id":71246780,"user":{"login":"jakeyr","id":282902,"avatar_url":"https://avatars.githubusercontent.com/u/282902?v=3","gravatar_id":"","url":"https://api.github.com/users/jakeyr","html_url":"https://github.com/jakeyr","followers_url":"https://api.github.com/users/jakeyr/followers","following_url":"https://api.github.com/users/jakeyr/following{/other_user}","gists_url":"https://api.github.com/users/jakeyr/gists{/gist_id}","starred_url":"https://api.github.com/users/jakeyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakeyr/subscriptions","organizations_url":"https://api.github.com/users/jakeyr/orgs","repos_url":"https://api.github.com/users/jakeyr/repos","events_url":"https://api.github.com/users/jakeyr/events{/privacy}","received_events_url":"https://api.github.com/users/jakeyr/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T19:07:54Z","updated_at":"2015-01-23T19:07:54Z","body":"Note we are currently running this internally and i am running into some issues where certain users seem to not be able to access their own membership lists. it might be better to move to using a \"serviceadmin\" account instead of per-user Oauth2. I'm investigating."}}