[gnome-online-accounts] google: Request profile scope
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] google: Request profile scope
- Date: Sat, 14 Dec 2013 10:45:57 +0000 (UTC)
commit a7ec26c5a1ac09e6c1e98f578838913eb9d68a42
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Dec 13 23:23:50 2013 -0500
google: Request profile scope
This gives us access to the user name and picture, which will
be used in gnome-initial-setup to prepopulate the local account.
https://bugzilla.gnome.org/show_bug.cgi?id=720446
src/goabackend/goagoogleprovider.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/goabackend/goagoogleprovider.c b/src/goabackend/goagoogleprovider.c
index f6cfa2f..8e69242 100644
--- a/src/goabackend/goagoogleprovider.c
+++ b/src/goabackend/goagoogleprovider.c
@@ -123,6 +123,9 @@ get_scope (GoaOAuth2Provider *provider)
return /* Read-only access to the user's email address */
"https://www.googleapis.com/auth/userinfo.email "
+ /* Name and picture */
+ "https://www.googleapis.com/auth/userinfo.profile "
+
/* Google Calendar API (CalDAV and GData) */
"https://www.googleapis.com/auth/calendar "
@@ -147,7 +150,7 @@ get_scope (GoaOAuth2Provider *provider)
static guint
get_credentials_generation (GoaProvider *provider)
{
- return 5;
+ return 6;
}
static const gchar *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]