[gnome-online-accounts/gnome-3-12] google: Add support for tasks
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/gnome-3-12] google: Add support for tasks
- Date: Wed, 16 Jul 2014 09:20:06 +0000 (UTC)
commit 65330568446975c27753e8d2ef666b5031742b96
Author: Felipe Borges <felipe10borges gmail com>
Date: Wed Feb 13 01:15:09 2013 -0200
google: Add support for tasks
At the moment there is no separate switch for it because it is so
similar to calendars. We can consider adding a separate switch later
if there is need for it.
Access to the Google Tasks API was turned on in the Google APIs
console because the documentation suggests that it is the way to go.
However, some third-party websites [1] mention a scope string that can
be put in the sources. Given that Google's documentation has proven to
be unreliable in this regard we had added it too. For some context see:
2c93558da1e85bbf8c17715820344e7eb708f274 and
9182fb378614abb2ff0245fe71a753f22eaaa906
[1] https://discovery-check.appspot.com/
Fixes: https://bugzilla.gnome.org/693689
src/goabackend/goagoogleprovider.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/goabackend/goagoogleprovider.c b/src/goabackend/goagoogleprovider.c
index 22933ea..3233895 100644
--- a/src/goabackend/goagoogleprovider.c
+++ b/src/goabackend/goagoogleprovider.c
@@ -145,13 +145,16 @@ get_scope (GoaOAuth2Provider *provider)
"https://www.googleapis.com/auth/cloudprint "
/* Google Talk */
- "https://www.googleapis.com/auth/googletalk";
+ "https://www.googleapis.com/auth/googletalk "
+
+ /* Google Tasks - undocumented */
+ "https://www.googleapis.com/auth/tasks";
}
static guint
get_credentials_generation (GoaProvider *provider)
{
- return 7;
+ return 8;
}
static const gchar *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]