dbus: rename interfaces to avoid conflict
authorJussi Laako <jussi.laako@linux.intel.com>
Tue, 12 Feb 2013 14:51:42 +0000 (16:51 +0200)
committerJussi Laako <jussi.laako@linux.intel.com>
Fri, 31 May 2013 09:27:44 +0000 (12:27 +0300)
identityinfo: don't pass owner or ACL if not set - leave it to deamon

libsignon-glib/Makefile.am
libsignon-glib/interfaces/com.google.code.AccountsSSO.SingleSignOn.AuthService.xml [deleted file]
libsignon-glib/interfaces/com.google.code.AccountsSSO.SingleSignOn.AuthSession.xml [deleted file]
libsignon-glib/interfaces/com.google.code.AccountsSSO.SingleSignOn.Identity.xml [deleted file]
libsignon-glib/interfaces/com.google.code.AccountsSSO.gSingleSignOn.AuthService.xml [new file with mode: 0644]
libsignon-glib/interfaces/com.google.code.AccountsSSO.gSingleSignOn.AuthSession.xml [new file with mode: 0644]
libsignon-glib/interfaces/com.google.code.AccountsSSO.gSingleSignOn.Identity.xml [new file with mode: 0644]
libsignon-glib/signon-identity-info.c
libsignon-glib/signon-identity.c
libsignon-glib/signon-internals.h

index 67c3782eeb702f6ac3c75ca88b686a12f746890d..3aeeba8f37e7be1401dcde4a65ada9d8b0b454ec 100644 (file)
@@ -33,9 +33,9 @@ BUILT_SOURCES = \
 
 CLEANFILES = \
        $(BUILT_SOURCES) \
-       sso-auth-service-gen-doc-com.google.code.AccountsSSO.SingleSignOn.AuthService.xml \
-       sso-auth-session-gen-doc-com.google.code.AccountsSSO.SingleSignOn.AuthSession.xml \
-       sso-identity-gen-doc-com.google.code.AccountsSSO.SingleSignOn.Identity.xml
+       sso-auth-service-gen-doc-com.google.code.AccountsSSO.gSingleSignOn.AuthService.xml \
+       sso-auth-session-gen-doc-com.google.code.AccountsSSO.gSingleSignOn.AuthSession.xml \
+       sso-identity-gen-doc-com.google.code.AccountsSSO.gSingleSignOn.Identity.xml
 
 libsignon_glib_la_SOURCES = \
        signon-auth-service.h \
@@ -82,25 +82,25 @@ libsignon_glib_headers_with_enums = \
 # default is /usr/share/dbus-1/interfaces
 DBUS_INTERFACES_DIR = interfaces
 
-sso-auth-service-gen.h sso-auth-service-gen.c: $(DBUS_INTERFACES_DIR)/com.google.code.AccountsSSO.SingleSignOn.AuthService.xml
+sso-auth-service-gen.h sso-auth-service-gen.c: $(DBUS_INTERFACES_DIR)/com.google.code.AccountsSSO.gSingleSignOn.AuthService.xml
        $(AM_V_GEN)gdbus-codegen \
                --generate-c-code sso-auth-service-gen \
                --generate-docbook sso-auth-service-gen-doc \
-               --annotate "com.google.code.AccountsSSO.SingleSignOn.AuthService" org.gtk.GDBus.C.Name SsoAuthService \
+               --annotate "com.google.code.AccountsSSO.gSingleSignOn.AuthService" org.gtk.GDBus.C.Name SsoAuthService \
                $<
 
-sso-auth-session-gen.h sso-auth-session-gen.c: $(DBUS_INTERFACES_DIR)/com.google.code.AccountsSSO.SingleSignOn.AuthSession.xml
+sso-auth-session-gen.h sso-auth-session-gen.c: $(DBUS_INTERFACES_DIR)/com.google.code.AccountsSSO.gSingleSignOn.AuthSession.xml
        $(AM_V_GEN)gdbus-codegen \
                --generate-c-code sso-auth-session-gen \
                --generate-docbook sso-auth-session-gen-doc \
-               --annotate "com.google.code.AccountsSSO.SingleSignOn.AuthSession" org.gtk.GDBus.C.Name SsoAuthSession \
+               --annotate "com.google.code.AccountsSSO.gSingleSignOn.AuthSession" org.gtk.GDBus.C.Name SsoAuthSession \
                $<
 
-sso-identity-gen.h sso-identity-gen.c: $(DBUS_INTERFACES_DIR)/com.google.code.AccountsSSO.SingleSignOn.Identity.xml
+sso-identity-gen.h sso-identity-gen.c: $(DBUS_INTERFACES_DIR)/com.google.code.AccountsSSO.gSingleSignOn.Identity.xml
        $(AM_V_GEN)gdbus-codegen \
                --generate-c-code sso-identity-gen \
                --generate-docbook sso-identity-gen-doc \
-               --annotate "com.google.code.AccountsSSO.SingleSignOn.Identity" org.gtk.GDBus.C.Name SsoIdentity \
+               --annotate "com.google.code.AccountsSSO.gSingleSignOn.Identity" org.gtk.GDBus.C.Name SsoIdentity \
                $<
 
 signon-marshal.h: signon-marshal.list Makefile
diff --git a/libsignon-glib/interfaces/com.google.code.AccountsSSO.SingleSignOn.AuthService.xml b/libsignon-glib/interfaces/com.google.code.AccountsSSO.SingleSignOn.AuthService.xml
deleted file mode 100644 (file)
index 88465c3..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
-<node>
-  <interface name="com.google.code.AccountsSSO.SingleSignOn.AuthService">
-    <method name="registerNewIdentity">
-      <arg name="applicationContext" type="s" direction="in"/>
-      <arg name="objectPath" type="o" direction="out"/>
-    </method>
-    <method name="getIdentity">
-      <arg name="id" type="u" direction="in"/>
-      <arg name="applicationContext" type="s" direction="in"/>
-      <arg name="objectPath" type="o" direction="out"/>
-      <arg name="identityData" type="a{sv}" direction="out"/>
-    </method>
-    <method name="queryMethods">
-      <arg name="authMethods" type="as" direction="out"/>
-    </method>
-    <method name="queryMechanisms">
-      <arg name="mechanisms" type="as" direction="out"/>
-      <arg name="method" type="s" direction="in"/>
-    </method>
-    <method name="queryIdentities">
-      <arg name="identities" type="aa{sv}" direction="out"/>
-      <arg name="filter" type="a{sv}" direction="in"/>
-      <annotation name="com.trolltech.QtDBus.QtTypeName.In0" value="QVariantMap"/>
-    </method>
-    <method name="clear">
-      <arg type="b" direction="out"/>
-    </method>
-    <method name="backupStarts">
-      <arg type="y" direction="out"/>
-    </method>
-    <method name="backupFinished">
-      <arg type="y" direction="out"/>
-    </method>
-    <method name="restoreStarts">
-      <arg type="y" direction="out"/>
-    </method>
-    <method name="restoreFinished">
-      <arg type="y" direction="out"/>
-    </method>
-  </interface>
-</node>
diff --git a/libsignon-glib/interfaces/com.google.code.AccountsSSO.SingleSignOn.AuthSession.xml b/libsignon-glib/interfaces/com.google.code.AccountsSSO.SingleSignOn.AuthSession.xml
deleted file mode 100644 (file)
index 62aa6c1..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
-<node>
-  <interface name="com.google.code.AccountsSSO.SingleSignOn.AuthSession">
-    <signal name="stateChanged">
-      <arg name="state" type="i" direction="out"/>
-      <arg name="message" type="s" direction="out"/>
-    </signal>
-    <signal name="unregistered">
-    </signal>
-    <method name="queryAvailableMechanisms">
-      <arg type="as" direction="out"/>
-      <arg name="wantedMechanisms" type="as" direction="in"/>
-    </method>
-    <method name="process">
-      <arg type="a{sv}" direction="out"/>
-      <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="QVariantMap"/>
-      <arg name="sessionDataVa" type="a{sv}" direction="in"/>
-      <annotation name="com.trolltech.QtDBus.QtTypeName.In0" value="QVariantMap"/>
-      <arg name="mechanism" type="s" direction="in"/>
-    </method>
-    <method name="cancel">
-      <annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
-    </method>
-  </interface>
-</node>
diff --git a/libsignon-glib/interfaces/com.google.code.AccountsSSO.SingleSignOn.Identity.xml b/libsignon-glib/interfaces/com.google.code.AccountsSSO.SingleSignOn.Identity.xml
deleted file mode 100644 (file)
index 55d4fb7..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
-<node>
-  <interface name="com.google.code.AccountsSSO.SingleSignOn.Identity">
-    <signal name="unregistered">
-    </signal>
-    <signal name="infoUpdated">
-      <arg type="i" direction="out"/>
-    </signal>
-    <method name="requestCredentialsUpdate">
-      <arg type="u" direction="out"/>
-      <arg name="message" type="s" direction="in"/>
-    </method>
-    <method name="getInfo">
-      <arg name="identityInfo" type="a{sv}" direction="out"/>
-    </method>
-    <method name="getAuthSession">
-      <arg name="objectPath" type="o" direction="out"/>
-      <arg name="method" type="s" direction="in"/>
-    </method>
-    <method name="verifyUser">
-      <arg type="b" direction="out"/>
-      <arg name="params" type="a{sv}" direction="in"/>
-      <annotation name="com.trolltech.QtDBus.QtTypeName.In4" value="QVariantMap"/>
-    </method>
-    <method name="verifySecret">
-      <arg type="b" direction="out"/>
-      <arg name="secret" type="s" direction="in"/>
-    </method>
-    <method name="remove">
-    </method>
-    <method name="signOut">
-      <arg type="b" direction="out"/>
-    </method>
-    <method name="store">
-      <arg type="u" direction="out"/>
-      <arg type="a{sv}" direction="in"/>
-      <annotation name="com.trolltech.QtDBus.QtTypeName.In4" value="QVariantMap"/>
-    </method>
-    <method name="addReference">
-      <arg type="i" direction="out"/>
-      <arg name="reference" type="s" direction="in"/>
-    </method>
-    <method name="removeReference">
-      <arg type="i" direction="out"/>
-      <arg name="reference" type="s" direction="in"/>
-    </method>
-  </interface>
-</node>
diff --git a/libsignon-glib/interfaces/com.google.code.AccountsSSO.gSingleSignOn.AuthService.xml b/libsignon-glib/interfaces/com.google.code.AccountsSSO.gSingleSignOn.AuthService.xml
new file mode 100644 (file)
index 0000000..7d85456
--- /dev/null
@@ -0,0 +1,41 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<node>
+  <interface name="com.google.code.AccountsSSO.gSingleSignOn.AuthService">
+    <method name="registerNewIdentity">
+      <arg name="applicationContext" type="s" direction="in"/>
+      <arg name="objectPath" type="o" direction="out"/>
+    </method>
+    <method name="getIdentity">
+      <arg name="id" type="u" direction="in"/>
+      <arg name="applicationContext" type="s" direction="in"/>
+      <arg name="objectPath" type="o" direction="out"/>
+      <arg name="identityData" type="a{sv}" direction="out"/>
+    </method>
+    <method name="queryMethods">
+      <arg name="authMethods" type="as" direction="out"/>
+    </method>
+    <method name="queryMechanisms">
+      <arg name="mechanisms" type="as" direction="out"/>
+      <arg name="method" type="s" direction="in"/>
+    </method>
+    <method name="queryIdentities">
+      <arg name="identities" type="aa{sv}" direction="out"/>
+      <arg name="filter" type="a{sv}" direction="in"/>
+    </method>
+    <method name="clear">
+      <arg type="b" direction="out"/>
+    </method>
+    <method name="backupStarts">
+      <arg type="y" direction="out"/>
+    </method>
+    <method name="backupFinished">
+      <arg type="y" direction="out"/>
+    </method>
+    <method name="restoreStarts">
+      <arg type="y" direction="out"/>
+    </method>
+    <method name="restoreFinished">
+      <arg type="y" direction="out"/>
+    </method>
+  </interface>
+</node>
diff --git a/libsignon-glib/interfaces/com.google.code.AccountsSSO.gSingleSignOn.AuthSession.xml b/libsignon-glib/interfaces/com.google.code.AccountsSSO.gSingleSignOn.AuthSession.xml
new file mode 100644 (file)
index 0000000..7047757
--- /dev/null
@@ -0,0 +1,23 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<node>
+  <interface name="com.google.code.AccountsSSO.gSingleSignOn.AuthSession">
+    <signal name="stateChanged">
+      <arg name="state" type="i" direction="out"/>
+      <arg name="message" type="s" direction="out"/>
+    </signal>
+    <signal name="unregistered">
+    </signal>
+    <method name="queryAvailableMechanisms">
+      <arg type="as" direction="out"/>
+      <arg name="wantedMechanisms" type="as" direction="in"/>
+    </method>
+    <method name="process">
+      <arg type="a{sv}" direction="out"/>
+      <arg name="sessionDataVa" type="a{sv}" direction="in"/>
+      <arg name="mechanism" type="s" direction="in"/>
+    </method>
+    <method name="cancel">
+      <annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
+    </method>
+  </interface>
+</node>
diff --git a/libsignon-glib/interfaces/com.google.code.AccountsSSO.gSingleSignOn.Identity.xml b/libsignon-glib/interfaces/com.google.code.AccountsSSO.gSingleSignOn.Identity.xml
new file mode 100644 (file)
index 0000000..8e265de
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<node>
+  <interface name="com.google.code.AccountsSSO.gSingleSignOn.Identity">
+    <signal name="unregistered">
+    </signal>
+    <signal name="infoUpdated">
+      <arg type="i" direction="out"/>
+    </signal>
+    <method name="requestCredentialsUpdate">
+      <arg type="u" direction="out"/>
+      <arg name="message" type="s" direction="in"/>
+    </method>
+    <method name="getInfo">
+      <arg name="identityInfo" type="a{sv}" direction="out"/>
+    </method>
+    <method name="getAuthSession">
+      <arg name="objectPath" type="o" direction="out"/>
+      <arg name="method" type="s" direction="in"/>
+    </method>
+    <method name="verifyUser">
+      <arg type="b" direction="out"/>
+      <arg name="params" type="a{sv}" direction="in"/>
+    </method>
+    <method name="verifySecret">
+      <arg type="b" direction="out"/>
+      <arg name="secret" type="s" direction="in"/>
+    </method>
+    <method name="remove">
+    </method>
+    <method name="signOut">
+      <arg type="b" direction="out"/>
+    </method>
+    <method name="store">
+      <arg type="u" direction="out"/>
+      <arg type="a{sv}" direction="in"/>
+    </method>
+    <method name="addReference">
+      <arg type="i" direction="out"/>
+      <arg name="reference" type="s" direction="in"/>
+    </method>
+    <method name="removeReference">
+      <arg type="i" direction="out"/>
+      <arg name="reference" type="s" direction="in"/>
+    </method>
+  </interface>
+</node>
index 5839736582992bb075e3e2377a2318e488c889d5..bce8979c0d178626fc103dc0220fc959c118741a 100644 (file)
@@ -273,7 +273,6 @@ SignonIdentityInfo *signon_identity_info_new ()
     info->methods = g_hash_table_new_full (g_str_hash, g_str_equal,
                                             g_free, (GDestroyNotify)g_strfreev);
     info->store_secret = FALSE;
-    info->owner = signon_security_context_new ();
 
     return info;
 }
index 295e0155ff7cc194c68e822010ebb1625e871414..3b2179ecacc259dfb7e17fd4cbd910a1ef8fd768 100644 (file)
@@ -795,22 +795,11 @@ void signon_identity_store_credentials_with_args(SignonIdentity *self,
     {
         signon_identity_info_set_owner (info, owner);
     }
-    else
-    {
-        signon_identity_info_set_owner_from_values (info, "", "");
-        DEBUG ("created empty owner context");
-    }
     if (access_control_list)
     {
         signon_identity_info_set_access_control_list (info,
                                                       access_control_list);
     }
-    else
-    {
-        signon_identity_info_access_control_list_append (info,
-                            signon_security_context_new_from_values ("*", "*"));
-        DEBUG ("created wildcard access control list");
-    }
     signon_identity_info_set_identity_type (info, type);
 
     signon_identity_store_credentials_with_info (self, info, cb, user_data);
index 566a8cbea3ca4c158790af291cef90cfef462b97..a907fe32d4dc1d0f9552c342af9fbeae831f91ea 100644 (file)
 /*
  * Common DBUS definitions
  * */
-#define SIGNOND_SERVICE_PREFIX     "com.google.code.AccountsSSO.SingleSignOn"
+#define SIGNOND_SERVICE_PREFIX     "com.google.code.AccountsSSO.gSingleSignOn"
 #define SIGNOND_SERVICE            SIGNOND_SERVICE_PREFIX
 
-#define SIGNOND_DAEMON_OBJECTPATH  "/com/google/code/AccountsSSO/SingleSignOn"
+#define SIGNOND_DAEMON_OBJECTPATH  "/com/google/code/AccountsSSO/gSingleSignOn"
 #define SIGNOND_DAEMON_INTERFACE       SIGNOND_SERVICE_PREFIX ".AuthService"
 #define SIGNOND_IDENTITY_INTERFACE     SIGNOND_SERVICE_PREFIX ".Identity"
 #define SIGNOND_AUTH_SESSION_INTERFACE SIGNOND_SERVICE_PREFIX ".AuthSession"