Commit 425be152 authored by John Brooks's avatar John Brooks

[telepathy-sasl-signon] Include ClientSecret in signon requests if defined

Fixes signon with some services (e.g. google) that require ClientSecret
for refreshing tokens.
parent 1a95c10e
......@@ -213,7 +213,6 @@ session_process_cb (SignonAuthSession *session,
AuthContext *ctx = user_data;
const gchar *access_token;
const gchar *client_id;
const gchar *auth_method;
if (error != NULL)
......@@ -275,6 +274,7 @@ identity_query_info_cb (SignonIdentity *identity,
gpointer user_data)
AuthContext *ctx = user_data;
gchar *client_secret = 0;
if (error != NULL)
......@@ -311,6 +311,12 @@ identity_query_info_cb (SignonIdentity *identity,
if (ctx->client_id)
tp_asv_set_string (params, "ClientId", ctx->client_id);
SailfishKeyProvider_storedKey (ag_service_get_provider (service),
ag_service_get_name (service), "client_secret", &client_secret);
if (client_secret)
tp_asv_set_string (params, "ClientSecret", client_secret);
signon_auth_session_process (ctx->session,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment