GNOME Bugzilla – Bug 720446
add profile scope to google provider
Last modified: 2013-12-14 10:45:59 UTC
This will let us access the name and avatar picture of the account. We want to use this in gnome-initial-setup to prepopulate the local account information. Currently, I am getting the following information: { "id": "103842270499979733054", "email": "matthias.clasen@gmail.com", "verified_email": true } After adding https://www.googleapis.com/auth/userinfo.profile to the scopes, I get { "id": "107600591154209788182", "email": "angela.gnome@gmail.com", "verified_email": true, "name": "Angela Avery", "given_name": "Angela", "family_name": "Avery", "link": "https://plus.google.com/107600591154209788182", "picture": "https://lh3.googleusercontent.com/-t4XL5dtPWqw/AAAAAAAAAAI/AAAAAAAAACQ/GT4NBfd2ZOQ/photo.jpg", "gender": "female", "locale": "en" }
Created attachment 264185 [details] [review] 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.
Review of attachment 264185 [details] [review]: Thanks for the patch. ::: src/goabackend/goagoogleprovider.c @@ +129,2 @@ /* Google Calendar API (CalDAV and GData) */ "https://www.googleapis.com/auth/calendar " You should also bump the credentials generation (it is the next method in the same file) so that existing OAuth tokens are updated to work with the new set of scopes.
Created attachment 264190 [details] [review] google: Request profile scope Bumped the credentials generation.