diff options
| author | Matthew Barnes <mbarnes@redhat.com> | 2012-12-28 08:37:39 -0500 |
|---|---|---|
| committer | Matthew Barnes <mbarnes@redhat.com> | 2012-12-31 09:06:19 -0500 |
| commit | 841f8d77ef4428c9ff2109bc705bf0a51a3a518e (patch) | |
| tree | 9f32d9a3abc5e7395ddcf85a913bbe71bae469dc /private | |
| parent | a86d3aa8f8d26c3c0363447c379ad660cfc0726d (diff) | |
| download | evolution-data-server-841f8d77ef4428c9ff2109bc705bf0a51a3a518e.tar.gz | |
Add OAuth2Support D-Bus interface.
Backends will be able to obtain OAuth 2.0 access tokens through this
interface instead of talking directly to an "online accounts" service.
Diffstat (limited to 'private')
| -rw-r--r-- | private/Makefile.am | 1 | ||||
| -rw-r--r-- | private/org.gnome.evolution.dataserver.Source.xml | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/private/Makefile.am b/private/Makefile.am index 502fccb9c..a753ca1c3 100644 --- a/private/Makefile.am +++ b/private/Makefile.am @@ -45,6 +45,7 @@ GENERATED_DBUS_SOURCE = \ e-dbus-source-org.gnome.evolution.dataserver.Source.Writable.xml \ e-dbus-source-org.gnome.evolution.dataserver.Source.RemoteCreatable.xml \ e-dbus-source-org.gnome.evolution.dataserver.Source.RemoteDeletable.xml \ + e-dbus-source-org.gnome.evolution.dataserver.Source.OAuth2Support.xml \ $(NULL) GENERATED_DBUS_SOURCE_MANAGER = \ diff --git a/private/org.gnome.evolution.dataserver.Source.xml b/private/org.gnome.evolution.dataserver.Source.xml index 567a0e7eb..dc3f0f581 100644 --- a/private/org.gnome.evolution.dataserver.Source.xml +++ b/private/org.gnome.evolution.dataserver.Source.xml @@ -95,3 +95,28 @@ <method name="Delete"/> </interface> +<!-- + org.gnome.evolution.dataserver.Source.OAuth2Support: + @short_description: Supports OAuth 2.0 authentication + + This interface is used by data sources that support + <ulink url="http://oauth.net/2/">OAuth 2.0</ulink> authentication, + usually backed by a desktop-wide authentication service such as + <ulink url="http://live.gnome.org/GnomeOnlineAccounts">GNOME Online + Accounts</ulink>. +--> +<interface name="org.gnome.evolution.dataserver.Source.OAuth2Support"> + <!-- + GetAccessToken: + @access_token: The access token + @expires_in: The duration in seconds that the returned token is + valid for, or 0 if unknown + + Obtains an access token that can be used to access OAuth2-based + services for the data source. + --> + <method name="GetAccessToken"> + <arg name="access_token" type="s" direction="out"/> + <arg name="expires_in" type="i" direction="out"/> + </method> +</interface> |
