Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[telepathy-sasl-signon] Disable signon user interaction and password …
…requests

This will be replaced by an API to trigger authentication failed
notifications and have the user reauthenticate via the normal UI.
  • Loading branch information
John Brooks committed Sep 6, 2013
1 parent 4281080 commit 66a0a7d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions telepathy-sasl-signon/empathy-uoa-auth-handler.c
Expand Up @@ -171,6 +171,7 @@ request_password (AuthContext *ctx)

DEBUG ("Invalid credentials, request user action");

#if 0
/* Inform SSO that the access token (or password) didn't work and it should
* ask user to re-grant access (or retype password). */
extra_params = tp_asv_new (
Expand All @@ -186,6 +187,7 @@ request_password (AuthContext *ctx)
request_password_session_process_cb, ctx);

g_hash_table_unref (extra_params);
#endif
}

static void
Expand Down Expand Up @@ -292,11 +294,10 @@ identity_query_info_cb (SignonIdentity *identity,

SailfishKeyProvider_storedKey (ag_service_get_provider (service),
ag_service_get_name (service), "client_id", &ctx->client_id);

if (ctx->client_id)
{
tp_asv_set_string (params, "ClientId", ctx->client_id);
}

tp_asv_set_int32 (params, SIGNON_SESSION_DATA_UI_POLICY, SIGNON_POLICY_NO_USER_INTERACTION);

signon_auth_session_process (ctx->session,
params,
Expand Down

0 comments on commit 66a0a7d

Please sign in to comment.