summaryrefslogtreecommitdiff
path: root/gdata/gdata-service.h
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2011-03-22 13:20:44 +0000
committerPhilip Withnall <philip@tecnocode.co.uk>2011-03-22 13:20:44 +0000
commit810d9d81676f8eb3462cce590e467bb55fead259 (patch)
treede1002965a897c7dc740dff1bc7d39f7b9c99e8e /gdata/gdata-service.h
parentbbd37f5f81ae16457c0569f208090114bed1a8c0 (diff)
downloadlibgdata-810d9d81676f8eb3462cce590e467bb55fead259.tar.gz
Bug 644946 — Support two-factor authentication
Add support for notifying the user with a more specific error message if login failed due to them needing to enter an application-specific password. This adds the following new error code: • GDATA_AUTHENTICATION_ERROR_INVALID_SECOND_FACTOR Closes: bgo#644946
Diffstat (limited to 'gdata/gdata-service.h')
-rw-r--r--gdata/gdata-service.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdata/gdata-service.h b/gdata/gdata-service.h
index 28d1e56e..744d0173 100644
--- a/gdata/gdata-service.h
+++ b/gdata/gdata-service.h
@@ -99,6 +99,7 @@ typedef enum {
* @GDATA_AUTHENTICATION_ERROR_SERVICE_DISABLED: The user's access to the specified service has been disabled. (The user account may still be valid.)
* @GDATA_AUTHENTICATION_ERROR_ACCOUNT_MIGRATED: The user's account login details have been migrated to a new system. (This is used for the transition
* from the old YouTube login details to the new ones.)
+ * @GDATA_AUTHENTICATION_ERROR_INVALID_SECOND_FACTOR: The user's account requires an application-specific password to be used.
*
* Error codes for #GDataService authentication operations. See the
* <ulink type="http" url="http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html#Errors">Google accounts documentation</ulink> for
@@ -112,7 +113,8 @@ typedef enum {
GDATA_AUTHENTICATION_ERROR_ACCOUNT_DELETED,
GDATA_AUTHENTICATION_ERROR_ACCOUNT_DISABLED,
GDATA_AUTHENTICATION_ERROR_SERVICE_DISABLED,
- GDATA_AUTHENTICATION_ERROR_ACCOUNT_MIGRATED
+ GDATA_AUTHENTICATION_ERROR_ACCOUNT_MIGRATED,
+ GDATA_AUTHENTICATION_ERROR_INVALID_SECOND_FACTOR
} GDataAuthenticationError;
/**