FWIW, I deleted and recreated the account and everything worked just
fine, although this wasn't the path I initially intended to go take.

Anyway, before deleting the account I found this nifty tool called
'account-console' from the 'account-plugin-tools' package.  Prior to
deletion, this is what I would get from 'account-console show <ID>':

                                         
joao@tardis:~$ account-console show 1
account: id 1, enabled, provider: google
  Global settings:
    CredentialsId: 1 (<class 'int'>)
    auth/mechanism: web_server (<class 'str'>)
    auth/method: oauth2 (<class 'str'>)
    auth/oauth2/user_agent/AuthPath: o/oauth2/auth (<class 'str'>)
    auth/oauth2/user_agent/ClientId: 
759250720802-4sii0me9963n9fdqdmi7cepn6ub8luoh.apps.googleusercontent.com 
(<class 'str'>)
    auth/oauth2/user_agent/Host: accounts.google.com (<class 'str'>)
    auth/oauth2/user_agent/RedirectUri: https://wiki.ubuntu.com/ (<class 'str'>)
    auth/oauth2/user_agent/ResponseType: token (<class 'str'>)
    auth/oauth2/user_agent/Scope: ['https://docs.google.com/feeds/', 
'https://www.googleapis.com/auth/googletalk', 
'https://www.googleapis.com/auth/userinfo.email', 
'https://www.googleapis.com/auth/userinfo.profile', 
'https://picasaweb.google.com/data/'] (<class 'list'>)
    auth/oauth2/user_agent/TokenPath: o/oauth2/token (<class 'str'>)
    auth/oauth2/web_server/AllowedSchemes: ['https', 'http'] (<class 'list'>)
    auth/oauth2/web_server/AuthPath: o/oauth2/auth (<class 'str'>)
    auth/oauth2/web_server/ClientId: 
759250720802-4sii0me9963n9fdqdmi7cepn6ub8luoh.apps.googleusercontent.com 
(<class 'str'>)
    auth/oauth2/web_server/ClientSecret: [REDACTED] (<class 'str'>)
    auth/oauth2/web_server/Host: accounts.google.com (<class 'str'>)
    auth/oauth2/web_server/RedirectUri: https://wiki.ubuntu.com/ (<class 'str'>)
    auth/oauth2/web_server/ResponseType: code&access_type=offline (<class 
'str'>)
[TRIM]

See last line 'ResponseType' containing 'code&access_type=offline'.  I
also found this in '~/.config/libaccounts-glib/accounts.db', table
'Settings' (e.g., 'select service,key,value from Settings where id
=<ACCOUNT-ID>').

After recreating the account, 'account-console' now shows pretty much
the same with two different key differences:


auth/oauth2/web_server/AuthPath: o/oauth2/auth?access_type=offline (<class 
'str'>)

and

auth/oauth2/web_server/ResponseType: code (<class 'str'>)


which do reflect the contents of /usr/share/accounts/providers/google.provider


Finally, after looking a bit further into the code, I'm inclined to believe 
that this may have something to do with class QUrl being stripping '&' and 
substituting it for a % control char -- given QUrl being used throughout, I 
wasn't able to pinpoint the exact place where this is happening.

If this eventually happens to my other google account, I intend to
backup the sqlite db and attempt an in-place fix by adjusting the values
for keys of ResponseType' and 'AuthPath'.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to account-plugins in Ubuntu.
https://bugs.launchpad.net/bugs/1236881

Title:
  Google Account Plugin fails to authenticate

Status in “account-plugins” package in Ubuntu:
  Confirmed

Bug description:
  For the past few days on my saucy system I haven't been able to re-
  authorize my Google account. Attempts to do so result in an error page
  with the following content:

  Error: invalid_request
  Invalid response_type: code&access_type=offline
  Learn more
  Request Details
  response_type=code&access_type=offline
  scope=https://www.googleapis.com/auth/userinfo.email https://mail.google.com/ 
https://www.google.com/m8/feeds/ https://www.googleapis.com/auth/calendar
  redirect_uri=https://live.gnome.org/Evolution
  client_id=796629365126.apps.googleusercontent.com
  type=web_server

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: account-plugin-google 0.11+13.10.20130802-0ubuntu1
  ProcVersionSignature: Ubuntu 3.11.0-11.17-generic 3.11.3
  Uname: Linux 3.11.0-11-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.12.5-0ubuntu1
  Architecture: amd64
  Date: Tue Oct  8 10:17:06 2013
  InstallationDate: Installed on 2011-07-08 (823 days ago)
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
  MarkForUpload: True
  PackageArchitecture: all
  SourcePackage: account-plugins
  UpgradeStatus: Upgraded to saucy on 2013-06-14 (116 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/account-plugins/+bug/1236881/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to