linuxmint / cinnamon-control-center

A collection of configuration plugins used in cinnamon-settings
GNU General Public License v2.0
62 stars 67 forks source link

Unable to add U2F-secured Google account to online-accounts #336

Open burtek opened 5 months ago

burtek commented 5 months ago

Distribution

LMDE 6

Package version

6.0.4

Graphics hardware in use

No response

Frequency

Always

Bug description

Can't add Google account using online-accounts setting for an account setup with U2F keys.

Steps to reproduce

  1. Have an account setup with 2FA enabled, have U2F keys setup as 2FA method
  2. Run cinnamon-settings online-accounts and add Google account
  3. Type in username, confirm it, enter password, confirm it

The website starts "loading" and never goes to next step, which usually would be to ask for U2F key image

Expected behavior

The window should ask to use U2F key

Additional information

Adding of an account works for account with no 2FA method setup and for an account with TOTP 2FA setup

No error is shows in console:

$ cinnamon-settings online-accounts                                  
/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py:444: DeprecationWarning: Gtk.Window.set_wmclass is deprecated
  self.window.set_wmclass(wm_class, wm_class)
Loading Online Account module

Usually I'd setup app-password as per https://support.google.com/accounts/answer/185833, but it won't work with my account:

If you’ve set up 2-Step Verification but can’t find the option to add an app password, it might be because:

  • Your Google Account has 2-Step Verification set up only for security keys.

I am not going to setup any other 2FA method on this account, I expect online-accounts to work with U2F

burtek commented 5 months ago

Was able to workaround this by right-click > reload and selecting another auth method (device confirmation)