TheGoddessInari / hamsket

Free and Open Source messaging and emailing app that combines common web applications into one.
GNU General Public License v3.0
883 stars 54 forks source link

Login to Hangouts/Google chat #290

Open LiBOSS-CZ opened 2 years ago

LiBOSS-CZ commented 2 years ago

Steps to reproduce

Insert new hangouts chat and log in.

Expected behavior

Continue to insert password after entering email.

Actual behavior

Error message: This browser or app may not be secure. Learn more Try using a different browser. If you’re already using a supported browser, you can try again to sign in

At first I have this error only with czech language selected on the login page. Now it does not matter.

EDIT: It does matter again. Czech language - unable to login, English language - works. But not all the time.

ENVIRONMENT

Hamsket: v0.6.3

OS: Windows 10 Pro

Arch: x64

BuildVersion: 4b36e9f

Does this happen upstream: unknown
TheGoddessInari commented 2 years ago

In theory, it should be fixed on 0c6cda40.

LiBOSS-CZ commented 2 years ago

No, it is not fixed:-(.

reggermont commented 2 years ago

Confirmed, update did not fixed the issue. Also tried with a latest Chrome user agent and still not working

image

EDIT: Same issue for rambox: https://github.com/ramboxapp/community-edition/issues/3187

reggermont commented 2 years ago

EDIT: False alert, still doesn't work for personal gmail accounts but works with enterprise gmail accounts

Works for me today, may be a bug on Google side

reggermont commented 2 years ago

EDIT: Now not working again. This issue is really weird...

Found out issue may comes from User Agent. Can successfully connect with this one:

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36
timkgh commented 2 years ago

Same issue in Rambox CE 0.7.9 but that uses older Chromium and Node: https://github.com/ramboxapp/community-edition/issues/3187

Foggalong commented 2 years ago

Yeah I'm still getting this issue, even with latest nightly and @reggermont's suggested user agent :cry:

reureya commented 2 years ago

I think it probably has to do with Google's attempts to block MitM attacks from embedded browser frameworks (such as Electron?). Although I still think it's weird that I'm allowed to sign in to some accounts and not others (tested two different accounts, in the same Hamsket tab).

Explanatory blog post from Google

Google's "Guidance to developers affected by our effort to block less secure browsers and applications"

reureya commented 2 years ago

Follow up: I weirdly got it to work now!

I first tried just reloading the tab and then restarting Hamsket a few times, which didn't help. Then I tried clearing the cache and restarting Hamsket, after which I entered the full email address (including @gmail.com, which I don't think I did before).

Not sure what precisely the magic step was, but probably the clearing the cache, restarting Hamsket, and entering the full address procedure taken together is a tip worth trying.