Doesn't work with Google 2-Factor Authentication

Bug #1175122 reported by BeowulfOF
82
This bug affects 24 people
Affects Status Importance Assigned to Milestone
evolution-data-server
Fix Released
Medium
gnome-online-accounts
Fix Released
High
evolution-data-server (Ubuntu)
Fix Released
High
Unassigned
Raring
Won't Fix
High
Unassigned
Saucy
Fix Released
High
Unassigned
gnome-online-accounts (Ubuntu)
Fix Released
High
Unassigned
Raring
Won't Fix
High
Unassigned
Saucy
Fix Released
High
Unassigned

Bug Description

[Impact]

There is no obvious way for users of Google Two-Factor Authentication to add their Google account to GNOME Online Accounts.

[Test Case]

1. From GNOME Shell, run System Settings and click Online Accounts (If there are two Online Accounts launchers, click the second one with an icon that looks like two halves of the globe are being plugged into each other). If running Unity, you can also run the GNOME version by running XDG_CURRENT_DESKTOP=GNOME gnome-control-center.
2. Add a Google Account. Use your regular password and then enter the Google Two-Factor Authentication Code verification code when prompted.

What happens
===========
The Google account is added but immediately there is a warning
"Expired credentials. Please log in again."

[Regression Potential]

Only Google accounts should be affected. The CalDav provider in Evolution Data Server has been ported to also work with OAuth v2.

Workaround
=========
1. Open Password and Keys and type Google in the Filter box.
2. Double-click on the GOA google key.
3. In the Password field, click Show Password and replace only the password part with your application-specific password. See https://support.google.com/accounts/answer/185833 for instructions on generating an application-specific password.

Original bug report
===================
Since update to 13.04, using my Googlemail-Account via gnome-online-accounts leads to permant re-authenticating at google.

Nearly immediatly after authenticating my Google-Account, gnome-online-accounts asks for re-authenticating. The Dialogs on google show security captchas along the passwort and 2-step-pin entry.

Evolution is not able to sync calendar or any mails, even directly after authenticating at google.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: gnome-online-accounts 3.6.2-1ubuntu1
ProcVersionSignature: Ubuntu 3.8.0-19.29-generic 3.8.8
Uname: Linux 3.8.0-19-generic x86_64
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
Date: Wed May 1 12:32:58 2013
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-04-28 (2 days ago)
InstallationMedia: Ubuntu-GNOME 13.04 "Raring Ringtail" - Release amd64 (20130424)
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-online-accounts
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
BeowulfOF (beowulfof) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-online-accounts (Ubuntu):
status: New → Confirmed
Jeremy Bícha (jbicha)
summary: - Googlemail credentials always outdated
+ Doesn't work with Google 2-Factor Authentication
Jeremy Bícha (jbicha)
description: updated
Changed in gnome-online-accounts (Ubuntu):
importance: Undecided → High
status: Confirmed → Triaged
Changed in evolution-data-server (Ubuntu):
status: New → Triaged
importance: Undecided → High
Changed in evolution-data-server:
importance: Unknown → Medium
status: Unknown → Fix Released
Changed in gnome-online-accounts:
importance: Unknown → High
status: Unknown → New
Jeremy Bícha (jbicha)
Changed in gnome-online-accounts (Ubuntu Raring):
importance: Undecided → High
status: New → Triaged
Changed in evolution-data-server (Ubuntu Raring):
importance: Undecided → High
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package evolution-data-server - 3.8.3-0ubuntu5

---------------
evolution-data-server (3.8.3-0ubuntu5) saucy; urgency=low

  * debian/patches/fix-google-2fa-*.patch:
    - Backport commits to fix Google Two-Factor Authentication
      with GNOME Online Accounts by using Google's new OAuth v2
      support for CalDav (LP: #1175122)
 -- Jeremy Bicha <email address hidden> Wed, 10 Jul 2013 14:20:16 -0400

Changed in evolution-data-server (Ubuntu Saucy):
status: Triaged → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-online-accounts - 3.8.2-1ubuntu1

---------------
gnome-online-accounts (3.8.2-1ubuntu1) saucy; urgency=low

  * debian/patches/drop-google-password-interface*.patch:
    - Now that Google CalDav supports OAuth v2 for CalDav and
      evolution-data-server has been updated for it, drop the
      password-based UI that didn't work with Google Two-Factor
      Authentication anyway (patches backported from git) (LP: #1175122)
 -- Jeremy Bicha <email address hidden> Wed, 10 Jul 2013 14:24:42 -0400

Changed in gnome-online-accounts (Ubuntu Saucy):
status: Triaged → Fix Released
Changed in gnome-online-accounts:
status: New → Fix Released
Revision history for this message
DiegoRivera (diego-rivera) wrote :

Still seeing this with gnome-online-accounts-3.8.3-2 on Saucy.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

raring has seen the end of its life and is no longer receiving any updates. Marking the raring task for this ticket as "Won't Fix".

Changed in evolution-data-server (Ubuntu Raring):
status: Triaged → Won't Fix
Changed in gnome-online-accounts (Ubuntu Raring):
status: Triaged → Won't Fix
Revision history for this message
BeowulfOF (beowulfof) wrote :

Maybe there was a fix, but I still get the popup to enter my password for my google account every now and then, sometimes every 5 minutes, sometimes only once a day.

It is not fixed on 15.04!

Revision history for this message
BeowulfOF (beowulfof) wrote :

Heres the detailed version of the package where it is still failing with:

apt-cache policy gnome-online-accounts
gnome-online-accounts:
  Installiert: 3.14.2-1ubuntu1
  Installationskandidat: 3.14.2-1ubuntu1
  Versionstabelle:
 *** 3.14.2-1ubuntu1 0
        500 http://de.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
        100 /var/lib/dpkg/status

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.