oauth2_proxy icon indicating copy to clipboard operation
oauth2_proxy copied to clipboard

Google auth breaks if user has several emails

Open jehy opened this issue 7 years ago • 1 comments

Seems like an important bug, but I haven't found any mentions of this.

When I use one google account, everything is fine. But when i connect several accounts, I often have to relogin. Seems like data from another account is sometimes used for validation (may be account is selected randomly ot last used account is used), of cause it does not pass validation and asks user to relogin. That's really painful.

jehy avatar Aug 02 '18 13:08 jehy

You can filter out the list to a single domain, e.g.

login_url = "https://accounts.google.com/o/oauth2/auth?access_type=online&hd=mydomain.com"

roman-vynar avatar Aug 03 '18 09:08 roman-vynar