ankurk91 / google-chat-electron

An unofficial desktop app for Google Chat :electron:
GNU General Public License v3.0
162 stars 49 forks source link

Unable to login - This browser or app may not be secure. #52

Open MaverickTN opened 2 years ago

MaverickTN commented 2 years ago

Platform

google-chat-electron 2.13.0 Electron 16.0.1 win32 10.0.22523 Locale: en-US

image

ankurk91 commented 2 years ago

@MaverickTN

Hi, this is random issue, and it is not just Windows, it is happening on all platforms,

There is no issue with organizational (enterprise) accounts, it is only happening with personal accounts.

I have already applied a patch to fix this issue, i have changed the UserAgent of the app but Google still detecting the app as less secure.

I am trying to find a fix, i am also trying to download and install similar electron apps to check how they have handled such issue.

For now, can you try to quit from app and launch it again, and try to login again? This workaround worked for me.

PS Many other similar app having same issue https://github.com/TheGoddessInari/hamsket/issues/290 https://github.com/ytmdesktop/ytmdesktop/issues/866 https://github.com/timche/gmail-desktop/issues/174 https://github.com/meetfranz/franz/issues/1720

MaverickTN commented 2 years ago

I tried a quit with relaunch and even a reboot. I have not successfully logged in with it since install.

I have tried using a hangouts client called YakYak, and it logs in just fine, perhaps you can get some inspiration from it.

I'm running 1.5.12-beta with no issues currently.

Best wishes and a Happy New Year!

https://github.com/yakyak/yakyak

reureya commented 2 years ago

I think it probably has to do with Google's attempts to block MitM attacks from embedded browser frameworks.

Explanatory blog post from Google

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

SudoVanilla commented 2 years ago

I've easily fixed this issue by force changing the useragent. Hmm, expect PR soon and I'll test this on Windows(VM), macOS(VM), and Linux.

kbzowski commented 2 years ago

@ankurk91 Any news? The problem persists in 2.17.0

ankurk91 commented 2 years ago

This issue already has been tagged as "help wanted". There is no fix available

kaziu687 commented 2 years ago

Disabling "external links guard" resolved issue for me

image