{"action":"closed","issue":{"url":"https://api.github.com/repos/bitly/oauth2_proxy/issues/670","repository_url":"https://api.github.com/repos/bitly/oauth2_proxy","labels_url":"https://api.github.com/repos/bitly/oauth2_proxy/issues/670/labels{/name}","comments_url":"https://api.github.com/repos/bitly/oauth2_proxy/issues/670/comments","events_url":"https://api.github.com/repos/bitly/oauth2_proxy/issues/670/events","html_url":"https://github.com/bitly/oauth2_proxy/issues/670","id":381820335,"node_id":"MDU6SXNzdWUzODE4MjAzMzU=","number":670,"title":"how to handle the callback url and get the login google emaill account?","user":{"login":"wuweizi55","id":10337102,"node_id":"MDQ6VXNlcjEwMzM3MTAy","avatar_url":"https://avatars0.githubusercontent.com/u/10337102?v=4","gravatar_id":"","url":"https://api.github.com/users/wuweizi55","html_url":"https://github.com/wuweizi55","followers_url":"https://api.github.com/users/wuweizi55/followers","following_url":"https://api.github.com/users/wuweizi55/following{/other_user}","gists_url":"https://api.github.com/users/wuweizi55/gists{/gist_id}","starred_url":"https://api.github.com/users/wuweizi55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wuweizi55/subscriptions","organizations_url":"https://api.github.com/users/wuweizi55/orgs","repos_url":"https://api.github.com/users/wuweizi55/repos","events_url":"https://api.github.com/users/wuweizi55/events{/privacy}","received_events_url":"https://api.github.com/users/wuweizi55/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-17T02:43:35Z","updated_at":"2018-11-29T08:40:19Z","closed_at":"2018-11-29T08:40:19Z","author_association":"NONE","body":"I used google js (gapi) client implement google authentication before, when user completed google login flow, the user information can be retrieved from auth2.currentUser.get().\r\n\r\nI try to use oauth2_proxy as Google authentication Proxy, and following is get from callback ur, my question is, how to get the login google emaill account and how to return the value back to my login page?\r\nhttp://xxxxxxx/oauth2/callback/?state=7ff7f34389c43bcbbabcbcf157fe0cfc:/&code=4/mACu0cuE2zCxGSyaZDhSKuH2svQxbYlnc6UdxL2j2qxq3YH5MAFPdGFtn9djNfu-5Ab03nZuaYNpyEdvnmLgo4c&scope=email%20profile%20https://www.googleapis.com/auth/userinfo.profile%20https://www.googleapis.com/auth/userinfo.email\r\n\r\nThanks."}}
{"actor":{"display_login":"wuweizi55"}}