/soc/2015/nakulgulati/main: 14d343bc4b7f: hangouts: removed obso...
Nakul at rock.pidgin.im
Nakul at rock.pidgin.im
Tue Jun 30 02:00:29 EDT 2015
Changeset: 14d343bc4b7f49e21988f7bb581acb2a51769f3c
Author: Nakul Gulati
Date: 2015-06-30 13:59 +0800
Branch: hangouts
URL: https://hg.pidgin.im/soc/2015/nakulgulati/main/rev/14d343bc4b7f
Description:
hangouts: removed obsolete token
diffstat:
libpurple/protocols/hangouts/auth.c | 10 ++++++++--
libpurple/protocols/hangouts/hangouts.c | 25 -------------------------
2 files changed, 8 insertions(+), 27 deletions(-)
diffs (56 lines):
diff --git a/libpurple/protocols/hangouts/auth.c b/libpurple/protocols/hangouts/auth.c
--- a/libpurple/protocols/hangouts/auth.c
+++ b/libpurple/protocols/hangouts/auth.c
@@ -184,9 +184,15 @@ hangouts_auth_get_session_cookies_got_cb
cookie_jar = purple_http_conn_get_cookie_jar(gc);
gchar *cookies = purple_http_cookie_jar_dump(cookie_jar);
- gchar *hsid = purple_http_cookie_jar_get(cookie_jar,"HSID");
+ gchar *GAPS = purple_http_cookie_jar_get(cookie_jar,"GAPS");
- purple_debug_misc("hangouts-prpl", "cookies: %s \n HSID: %s", cookies, hsid);
+ GList *headers = purple_http_response_get_all_headers(response);
+ GList *l;
+ for (l = headers; l != NULL; l = l->next){
+ purple_debug_misc("hangouts-prpl", "headers: %s\n", l->data);
+ }
+
+ purple_debug_misc("hangouts-prpl", "cookies: %s \n GAPS: %s", cookies, GAPS);
}
void
diff --git a/libpurple/protocols/hangouts/hangouts.c b/libpurple/protocols/hangouts/hangouts.c
--- a/libpurple/protocols/hangouts/hangouts.c
+++ b/libpurple/protocols/hangouts/hangouts.c
@@ -49,31 +49,6 @@ hangouts_login(PurpleAccount *acct)
purple_debug_misc("hangouts-prpl", "login; account username: %s;",username);
hangouts_auth_with_authentication_code(gc);
- //hangouts_auth_get_session_cookies(gc,"ya29.nQH0kem4ti_DiNx_10QYIi7i_-_sSX6wTB5psDX2HCrTMumch1sA9MH4W9vX1wjPKQ0DWI7YpPeyYg");
-
- /*gchar *auth_data, *url, *uberauth;
- PurpleHttpRequest *request;
-
- uberauth = "APh-3FyMsmiJ992AFz_MyLg61JSKHEH_gNMB3j1QQjXqP-"
- "t6yRNf0CcnTuv3V2MxXlEEUDtlqnKootkJV-a-hdiZvP7vE2ee"
- "Ticearq7L_hNHM_Pspko2kXmCf6t6ACen-XU5jTsbY0ijXejX7g"
- "3_W9r2sBBeNiMvoX-aqGYQ8tU7-oDFjy5r0ryA9oeyEwXuxMX9h"
- "9vtkw04kHDkzrXvu-2VZDw-GshEK6FyFnNI8jf93TQuJAlDOsfug"
- "9O0XgE0MUlpxrQK2MnovmekE4j46z8nGTJkLwg2faQn3SeX51CpW"
- "tt6wT6Q9RP-HgkTjJ-Xh_JDZ7rvZKGDzJ9M2lqzzwWaPK5i1j-4ut"
- "m8m8pl4TUd4pa-S4raVN_yBUdh7Saft9ctUNXHAJwIFynJxnSZ0G5o"
- "yVBzslBYb4GG8olQStMStT5rynlmnH34gMzu5IW7Y9NpHHZbDYA2Kt-O"
- "80GuKdl_xujLh3xS4dttx2K7Tbefy8LVqA5KiJL3kKW9rEFnMJzv7heF"
- "zVBV0cnwiJg_JXstIt7rzSwyA";
-
- auth_data = g_strdup_printf("Bearer %s","ya29.nQH0kem4ti_DiNx_10QYIi7i_-_sSX6wTB5psDX2HCrTMumch1sA9MH4W9vX1wjPKQ0DWI7YpPeyYg");
- url = g_strdup_printf("https://accounts.google.com/MergeSession?"
- "service=mail&continue=http://www.google.com&uberauth=%s",uberauth);
-
- request = purple_http_request_new(url);
- purple_http_request_set_method(request,"GET");
- purple_http_request_header_set(request,"Authorization",auth_data);
- purple_http_request(gc,request,hangouts_auth_get_session_cookies_got_cb,NULL);*/
}
More information about the Commits
mailing list