[gnome-online-accounts/wip/kerberos] fixup! Allow for transient, "non-permanent" accounts
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/wip/kerberos] fixup! Allow for transient, "non-permanent" accounts
- Date: Mon, 20 Aug 2012 13:28:48 +0000 (UTC)
commit c11bc2ec67392561f2b520774ddcff743b3d2d38
Author: Ray Strode <rstrode redhat com>
Date: Sun Aug 12 20:41:42 2012 -0400
fixup! Allow for transient, "non-permanent" accounts
One prerequisite for adding kerberos support to online accounts
is for it to allowr accounts to show up that weren't explicitly
previously added by the user from control-center. For instance,
if a user runs "kinit" they should still be able to see their
kerberos tickets in the dialog, and even destroy the credentials
and remove the account.
Of course these accounts have a lifetime limited to the current
session. We don't want a user to unintentionally trigger permanent
behavior by just doing a one off kinit.
https://bugzilla.gnome.org/show_bug.cgi?id=679253
src/daemon/goadaemon.c | 1 +
src/goabackend/goaprovider.c | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/daemon/goadaemon.c b/src/daemon/goadaemon.c
index 018deaf..7cb72e0 100644
--- a/src/daemon/goadaemon.c
+++ b/src/daemon/goadaemon.c
@@ -1328,6 +1328,7 @@ ensure_permanent_cb (GoaProvider *provider,
}
ensure_data_unref (data);
}
+
static gboolean
on_account_handle_ensure_permanent (GoaAccount *account,
GDBusMethodInvocation *invocation,
diff --git a/src/goabackend/goaprovider.c b/src/goabackend/goaprovider.c
index dacf6e2..908063b 100644
--- a/src/goabackend/goaprovider.c
+++ b/src/goabackend/goaprovider.c
@@ -529,6 +529,8 @@ goa_provider_ensure_credentials_sync (GoaProvider *provider,
return GOA_PROVIDER_GET_CLASS (provider)->ensure_credentials_sync (provider, object, out_expires_in, cancellable, error);
}
+/* ---------------------------------------------------------------------------------------------------- */
+
static void
ensure_permanent_in_thread_func (GSimpleAsyncResult *simple,
GoaProvider *provider,
@@ -652,6 +654,8 @@ goa_provider_ensure_permanent_sync (GoaProvider *provider,
return GOA_PROVIDER_GET_CLASS (provider)->ensure_permanent_sync (provider, object, cancellable, error);
}
+/* ---------------------------------------------------------------------------------------------------- */
+
static gboolean
goa_provider_ensure_credentials_sync_real (GoaProvider *provider,
GoaObject *object,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]