[qutebrowser] Log in to Google Account using qutebrowser

Kevin Ashley Kevin.Ashley at practicemax.com
Wed Dec 4 03:16:39 CET 2019

The following links may be of use:

1 - Comment from google security about preventing MITM

2 - Reddit thread indicating someone else resolved this by adjusting their google account's "less secure apps" security setting:

3 - Documentation of the "less secure apps" security setting on your google account:

Thank you,


This e-mail, and any attachment(s) transmitted with it, may contain confidential health information or other information that is privileged, restricted or exempt from disclosure and is covered by law including, but not limited to, the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521. The information contained herein is intended solely for the use of the individual or entity to which it is addressed. The authorized recipient of this information is prohibited from further disclosing it without proper authorization or as permitted by law. Unauthorized disclosure on your part could subject you to penalties as described in federal and state law.

If you are not the intended recipient, or agent responsible for delivering or copying this communication, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by calling or replying that you have received the message in error, then permanently delete this message. Thank you.
-----Original Message-----
From: qutebrowser <qutebrowser-bounces at lists.qutebrowser.org> On Behalf Of Javier Ayres
Sent: Tuesday, December 3, 2019 18:26
To: Denis Khizhniak <4denis.kh at gmail.com>
Cc: qutebrowser <qutebrowser at lists.qutebrowser.org>
Subject: Re: [qutebrowser] Log in to Google Account using qutebrowser

I think you did everything right, it just seems that this check is not based on the user agent.

If you want to make sure: find one of those pages that tell you your user agent, add a line in your config.py with the page's domain, visit it and check that it returns the user agent you wrote.

2019-12-03 15:35 GMT-03:00, Denis Khizhniak <4denis.kh at gmail.com>:
> HI Javier,
> Thank you for the tip. I'm new to qutebrowser and may have done
> something wrong.
> I've created the config.py file. Page *qute://version* says that is
> has been loaded.
> I have copied your lines and added one for '*.google.com', but with no
> success.
> Could you please point me in the right direction?
> вт, 3 дек. 2019 г. в 17:48, Javier Ayres <javierayres at gmail.com>:
>> Could this be solved with custom user agents? I have the following
>> lines in my config.py:
>> ua = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 ' \ '(KHTML,
>> like Gecko) Chrome/69.0.3497.128 Safari/537.36'
>> config.set('content.headers.user_agent', ua, '*.whatsapp.com')
>> config.set('content.headers.user_agent', ua, '*.slack.com')
>> On Tue, Dec 3, 2019, 12:40 Florian Bruhin <me at the-compiler.org> wrote:
>>> Hey Denis,
>>> On Tue, Dec 03, 2019 at 12:58:23PM +0100, Denis Khizhniak wrote:
>>> > I would like to switch to qutebrowser from Chromium but I can't
>>> > log in
>>> to
>>> > my Google account.
>>> > Every time I try I receive this message:
>>> >
>>> > Couldn't sign you in
>>> > You are trying to sign in from a browser or app that doesn't allow
>>> > us to keep your account secure.
>>> > Try using a different browser. Learn more
>>> > <https://urldefense.proofpoint.com/v2/url?u=https-3A__support.goog
>>> > le.com_accounts_answer_7675428-3Fhl-3Den&d=DwIFaQ&c=CGMgyzKYjHNQIm
>>> > UEHNe2B8lDgzoGYXpYQgjl1xrjsdI&r=Zv4I5vLgKKLdEfoJPpseR6EJ8k97HqLh3U
>>> > Bs2iSFH-8&m=5FUQMHpcVz2D8xnYlx9U0_W6PvdDwR35UAk4HHH0Sd0&s=ER9yxyXH
>>> > smfPven-KFz2rdKbq37LyLG88yzTVLXzXcc&e= >
>>> >
>>> > Could you please assist with this?
>>> > I have already tried to change *headers.user_agent* with no luck.
>>> > Do you have any workarounds?
>>> This is a change by Google, targetting applications which aren't
>>> browsers but ask the user to sign in to their Google Account:
>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__security.google
>>> blog.com_2019_04_better-2Dprotection-2Dagainst-2Dman-2Din-2Dmiddle.h
>>> tml&d=DwIFaQ&c=CGMgyzKYjHNQImUEHNe2B8lDgzoGYXpYQgjl1xrjsdI&r=Zv4I5vL
>>> gKKLdEfoJPpseR6EJ8k97HqLh3UBs2iSFH-8&m=5FUQMHpcVz2D8xnYlx9U0_W6PvdDw
>>> R35UAk4HHH0Sd0&s=AVr5ChWRfe3pTcF6gNDeWy0RFpOprQAhc42XHAKYXuE&e=
>>> I've heard about it before:
>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__www.reddit.com_
>>> r_qutebrowser_comments_cyb1wi_cant-5Fsign-5Finto-5Fgoogle_&d=DwIFaQ&
>>> c=CGMgyzKYjHNQImUEHNe2B8lDgzoGYXpYQgjl1xrjsdI&r=Zv4I5vLgKKLdEfoJPpse
>>> R6EJ8k97HqLh3UBs2iSFH-8&m=5FUQMHpcVz2D8xnYlx9U0_W6PvdDwR35UAk4HHH0Sd
>>> 0&s=acJWwu-D0-044_SVEIvOTG3xncJRfWBT8841GcqIE8o&e=
>>> but it seems to come and go, and I've never seen it with my own
>>> account so far.
>>> Not much qutebrowser can do I guess - you might want to contact
>>> Google in some way, but... good luck with that.
>>> Florian
>>> --
>>> me at the-compiler.org (Mail/XMPP) | https://urldefense.proofpoint.com/v2/url?u=https-3A__www.qutebrowser.org&d=DwIFaQ&c=CGMgyzKYjHNQImUEHNe2B8lDgzoGYXpYQgjl1xrjsdI&r=Zv4I5vLgKKLdEfoJPpseR6EJ8k97HqLh3UBs2iSFH-8&m=5FUQMHpcVz2D8xnYlx9U0_W6PvdDwR35UAk4HHH0Sd0&s=q5aZ0IRTbFGo0zjmwaj3VTBWcX5ygog6YxofXHAjyg4&e=
>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__bruhin.software_&d=DwIFaQ&c=CGMgyzKYjHNQImUEHNe2B8lDgzoGYXpYQgjl1xrjsdI&r=Zv4I5vLgKKLdEfoJPpseR6EJ8k97HqLh3UBs2iSFH-8&m=5FUQMHpcVz2D8xnYlx9U0_W6PvdDwR35UAk4HHH0Sd0&s=nF62cWjWajQGUvGFSt3TS4AsUrTjBxEj2Y0xVe3K92E&e=  | https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sponsors_The-2DCompiler_&d=DwIFaQ&c=CGMgyzKYjHNQImUEHNe2B8lDgzoGYXpYQgjl1xrjsdI&r=Zv4I5vLgKKLdEfoJPpseR6EJ8k97HqLh3UBs2iSFH-8&m=5FUQMHpcVz2D8xnYlx9U0_W6PvdDwR35UAk4HHH0Sd0&s=cj7B0JczsWIlJhL7NnxE90Se8hV0cU_k2oloWh8rt30&e=
>>>        GPG: 916E B0C8 FD55 A072 | https://urldefense.proofpoint.com/v2/url?u=https-3A__the-2Dcompiler.org_pubkey.asc&d=DwIFaQ&c=CGMgyzKYjHNQImUEHNe2B8lDgzoGYXpYQgjl1xrjsdI&r=Zv4I5vLgKKLdEfoJPpseR6EJ8k97HqLh3UBs2iSFH-8&m=5FUQMHpcVz2D8xnYlx9U0_W6PvdDwR35UAk4HHH0Sd0&s=i1lARUoEA8SxtuvH9bo89iu6teGiSqxpazYc3ctFGM0&e=
>>>              I love long mails! |
>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__email.is-2Dnot-
>>> 2Ds.ms_&d=DwIFaQ&c=CGMgyzKYjHNQImUEHNe2B8lDgzoGYXpYQgjl1xrjsdI&r=Zv4
>>> I5vLgKKLdEfoJPpseR6EJ8k97HqLh3UBs2iSFH-8&m=5FUQMHpcVz2D8xnYlx9U0_W6P
>>> vdDwR35UAk4HHH0Sd0&s=CUeZOBXAu6qT6CPTnAWrxx_ipAshXRNpmTSMng925UQ&e=
> --
> Best regards,
> Denis Khizhniak

More information about the qutebrowser mailing list