bitly / oauth2_proxy

A reverse proxy that provides authentication with Google, Github or other provider
MIT License
5.1k stars 1.21k forks source link

how to handle the callback url and get the login google emaill account? #670

Closed wuweizi55 closed 5 years ago

wuweizi55 commented 5 years ago

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().

I 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? http://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

Thanks.

lelvisl commented 5 years ago

Did you solve this problem?