[qutebrowser] Log in to Google Account using qutebrowser

Javier Ayres javierayres at gmail.com
Wed Dec 4 02:26:07 CET 2019


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://support.google.com/accounts/answer/7675428?hl=en>
>>> >
>>> > 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://security.googleblog.com/2019/04/better-protection-against-man-in-middle.html
>>>
>>> I've heard about it before:
>>>
>>> https://www.reddit.com/r/qutebrowser/comments/cyb1wi/cant_sign_into_google/
>>> 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://www.qutebrowser.org
>>>        https://bruhin.software/ |
>>> https://github.com/sponsors/The-Compiler/
>>>        GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
>>>              I love long mails! | https://email.is-not-s.ms/
>>>
>>
>
> --
> Best regards,
> Denis Khizhniak
>



More information about the qutebrowser mailing list