Merge lp:~nikwen/account-polld/no-user-interaction into lp:~ubuntu-push-hackers/account-polld/trunk

Proposed by Niklas Wenzel
Status: Merged
Approved by: Jonas G. Drange
Approved revision: 138
Merged at revision: 139
Proposed branch: lp:~nikwen/account-polld/no-user-interaction
Merge into: lp:~ubuntu-push-hackers/account-polld/trunk
Diff against target: 22 lines (+9/-1)
1 file modified
accounts/account-watcher.c (+9/-1)
To merge this branch: bzr merge lp:~nikwen/account-polld/no-user-interaction
Reviewer Review Type Date Requested Status
Jonas G. Drange (community) Approve
Alberto Mardegan (community) Approve
PS Jenkins bot continuous-integration Pending
Review via email: mp+272309@code.launchpad.net

Commit message

Tell libsignon-glib not to open a trust session by passing SIGNON_POLICY_NO_USER_INTERACTION as the SIGNON_SESSION_DATA_UI_POLICY value (part of the issue experienced in LP: #1496773)

Description of the change

Tell libsignon-glib not to open a trust session by passing SIGNON_POLICY_NO_USER_INTERACTION as the SIGNON_SESSION_DATA_UI_POLICY value.

I tested this and normal operation seems to work fine. I didn't have a way of reproducing the linked bug report though.

To post a comment you must log in.
Revision history for this message
Alberto Mardegan (mardy) wrote :

LGTM, thanks a lot!! :-)

review: Approve
Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

LGTM, works well.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'accounts/account-watcher.c'
--- accounts/account-watcher.c 2015-03-20 14:34:48 +0000
+++ accounts/account-watcher.c 2015-09-24 20:10:19 +0000
@@ -155,9 +155,17 @@
155 return;155 return;
156 }156 }
157157
158 /* Tell libsignon-glib not to open a trust session as we have no UI */
159 GVariantBuilder builder;
160 g_variant_builder_init(&builder, G_VARIANT_TYPE_VARDICT);
161 g_variant_builder_add(&builder, "{sv}",
162 SIGNON_SESSION_DATA_UI_POLICY,
163 g_variant_new_int32(SIGNON_POLICY_NO_USER_INTERACTION));
164
158 info->auth_params = g_variant_ref_sink(165 info->auth_params = g_variant_ref_sink(
159 ag_auth_data_get_login_parameters(166 ag_auth_data_get_login_parameters(
160 auth_data, NULL));167 auth_data,
168 g_variant_builder_end(&builder)));
161169
162 signon_auth_session_process_async(170 signon_auth_session_process_async(
163 info->session,171 info->session,

Subscribers

People subscribed via source and target branches