summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2011-04-25 17:36:42 -0400
committerDavid Zeuthen <davidz@redhat.com>2011-04-25 17:36:42 -0400
commit0ce85dce3d531db24961467af518de3dc47b9a82 (patch)
treeebecb862395ef1ad7b6d0053921a45ceec2d3112 /data
parenta789d5b5e8338939ffc45ebf80ea257cb00f6caa (diff)
Add org.gnome.OnlineAccounts.AccessTokenBased interface
This means that e.g. gdbus call --session --dest org.gnome.OnlineAccounts --object-path /org/gnome/OnlineAccounts/Accounts/account_1303766726 --method org.gnome.OnlineAccounts.AccessTokenBased.GetAccessToken ('1/nGak8-9mV69ht19pqyP6CGgeckEhQB3x43szhGL0BLk', 3600) works. Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'data')
-rw-r--r--data/dbus-interfaces.xml26
1 files changed, 24 insertions, 2 deletions
diff --git a/data/dbus-interfaces.xml b/data/dbus-interfaces.xml
index b2517f5..0825b0a 100644
--- a/data/dbus-interfaces.xml
+++ b/data/dbus-interfaces.xml
@@ -108,7 +108,7 @@
account (for example <email>user@gmail.com</email>).
Objects implementing this interface also implement the
- #org.gnome.OnlineAccounts.Account interface.
+ #org.gnome.OnlineAccounts.Account and #org.gnome.OnlineAccounts.AccessTokenBased interfaces.
When creating this kind of account via the
org.gnome.OnlineAccounts.Manager.AddAccount() method, you need
@@ -116,7 +116,6 @@
the @details parameter.
-->
<interface name="org.gnome.OnlineAccounts.GoogleAccount">
-
<!-- EmailAddress: The email address identifying the account.
This value cannot be changed once set.
@@ -125,6 +124,29 @@
</interface>
<!--
+ org.gnome.OnlineAccounts.AccessTokenBased:
+
+ An account object implements this interface if it is based on
+ access tokens such as e.g. <ulink
+ url="http://en.wikipedia.org/wiki/OAuth">OAuth</ulink>.
+ -->
+ <interface name="org.gnome.OnlineAccounts.AccessTokenBased">
+ <!--
+ GetAccessToken:
+ @access_token: The access token that can be used to access online services.
+ @expires_in: The duration that the returned token is valid for, in seconds or 0 if unknown.
+
+ Use this method to obtains an access token to access services
+ for the account. Because networking is involved, this method may
+ take a very long time to complete.
+ -->
+ <method name="GetAccessToken">
+ <arg name="access_token" type="s" direction="out"/>
+ <arg name="expires_in" type="i" direction="out"/>
+ </method>
+ </interface>
+
+ <!--
org.gnome.OnlineAccounts.Manager:
An interface used for managing accounts.