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.gSingleSignOn.AuthService.xml [moved from libsignon-glib/interfaces/com.google.code.AccountsSSO.SingleSignOn.AuthService.xml with 90% similarity]
libsignon-glib/interfaces/com.google.code.AccountsSSO.gSingleSignOn.AuthSession.xml [moved from libsignon-glib/interfaces/com.google.code.AccountsSSO.SingleSignOn.AuthSession.xml with 77% similarity]
libsignon-glib/interfaces/com.google.code.AccountsSSO.gSingleSignOn.Identity.xml [moved from libsignon-glib/interfaces/com.google.code.AccountsSSO.SingleSignOn.Identity.xml with 86% similarity]
libsignon-glib/signon-identity-info.c
libsignon-glib/signon-identity.c
libsignon-glib/signon-internals.h

index 67c3782..3aeeba8 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
@@ -1,6 +1,6 @@
 <!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">
+  <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"/>
@@ -21,7 +21,6 @@
     <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"/>
@@ -1,6 +1,6 @@
 <!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">
+  <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"/>
@@ -13,9 +13,7 @@
     </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">
@@ -1,6 +1,6 @@
 <!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">
+  <interface name="com.google.code.AccountsSSO.gSingleSignOn.Identity">
     <signal name="unregistered">
     </signal>
     <signal name="infoUpdated">
@@ -20,7 +20,6 @@
     <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"/>
@@ -34,7 +33,6 @@
     <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"/>
index 5839736..bce8979 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 295e015..3b2179e 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 566a8cb..a907fe3 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"