running signon-ui with SSOUI_LOGGING_LEVEL=4 (value I've been increasing
until I got more info), I got this:
(note that I've removed some strings that looked a lot like they could
compromise my account security)
service.cpp 222 queryDialog Got request: QMap(("Caption", QVariant(QString,
"Google") ) ( "ClientData" , QVariant(QVariantMap, QMap(("AllowedSchemes",
QVariant(QStringList, ("https", "http") ) ) ( "AuthPath" , QVariant(QString,
"o/oauth2/auth") ) ( "ClientId" , QVariant(QString,
"759250720802-4sii0me9963n9fdqdmi7cepn6ub8luoh.apps.googleusercontent.com") ) (
"ClientSecret" , QVariant(QString, "[REMOVED]") ) ( "Embedded" ,
QVariant(bool, true) ) ( "Host" , QVariant(QString, "accounts.google.com") ) (
"RedirectUri" , QVariant(QString, "https://wiki.ubuntu.com/") ) (
"ResponseType" , QVariant(QString, "code&access_type=offline") ) ( "Scope" ,
QVariant(QStringList, ("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/") ) ) ( "TokenPath" , QVariant(QString,
"o/oauth2/token") ) ( "WindowId" , QVariant(uint, 90178289) ) ) ) ) (
"FinalUrl" , QVariant(QString, "https://wiki.ubuntu.com/") ) ( "Identity" ,
QVariant(uint, 1) ) ( "Mechanism" , QVariant(QString, "web_server") ) (
"Method" , QVariant(QString, "oauth2") ) ( "OpenUrl" , QVariant(QString,
"https://accounts.google.com/o/oauth2/auth?client_id=759250720802-4sii0me9963n9fdqdmi7cepn6ub8luoh.apps.googleusercontent.com&redirect_uri=https://wiki.ubuntu.com/&response_type=code%26access_type%3Doffline&type=web_server&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/") ) ( "Secret" , QVariant(QString,
"[REMOVED]") ) ( "StoredIdentity" , QVariant(bool, true) ) ( "UserName" ,
QVariant(QString, "[REMOVED]") ) ( "requestId" , QVariant(QString,
"/com/google/code/AccountsSSO/SingleSignOn/AuthSession_0") ) )
request.cpp 314 newRequest Platform: "xcb"
service.cpp 132 runQueue Head: SignOnUi::BrowserRequest(0x932090)
browser-request.cpp 125 acceptNavigationRequest QUrl(
"https://accounts.google.com/o/oauth2/auth?client_id=759250720802-4sii0me9963n9fdqdmi7cepn6ub8luoh.apps.googleusercontent.com&redirect_uri=https://wiki.ubuntu.com/&response_type=code%26access_type%3Doffline&type=web_server&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/" )
It seems the culprit is that pair ' ( "ResponseType" , QVariant(QString,
"code&access_type=offline"))', which afaict from
/usr/share/accounts/providers/google.provider should have been two different
entries: "ResponseType" with value 'code' and "AuthPath" with value
'o/oauth2/auth?access_type=offline'. I've checked with request url, changing
the '%26' on 'response_type=code%26access_type...' to a '&' and the url does
work -- my guess is that after reading the value from the QVariant, the '&' is
taken as a literal value and not the control character it should have been and
translated to %26.
I've taken a quick look over the sources of signon-ui and signond but
dind't find where that request is built, nor where does the QMap come
from.
I hope this helps.
--
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