Lines Matching refs:access_token
127 static gint oauth2_filter_access (gchar *json, gchar *access_token, gint *expiry);
142 static gint oauth2_filter_access (gchar *json, gchar *access_token, gint *expiry) in oauth2_filter_access() argument
150 g_stpcpy (access_token,g_match_info_fetch (matchInfo, 1)); in oauth2_filter_access()
220 gchar *access_token; in oauth2_obtain_tokens() local
259 access_token = g_malloc(OAUTH2BUFSIZE+1); in oauth2_obtain_tokens()
306 if(oauth2_filter_access (response, access_token, &expiry) == 0){ in oauth2_obtain_tokens()
307 OAUTH2Data->access_token = access_token; in oauth2_obtain_tokens()
344 gchar *access_token; in oauth2_use_refresh_token() local
371 access_token = g_malloc(OAUTH2BUFSIZE+1); in oauth2_use_refresh_token()
413 if(oauth2_filter_access (response, access_token, &expiry) == 0){ in oauth2_use_refresh_token()
414 OAUTH2Data->access_token = access_token; in oauth2_use_refresh_token()
425 debug_print("OAuth2 - access token: %s\n", access_token); in oauth2_use_refresh_token()
548 … passwd_store_set_account(ac_prefs->account_id, PWS_ACCOUNT_RECV, OAUTH2Data->access_token, FALSE); in oauth2_check_passwds()
550 … passwd_store_set_account(ac_prefs->account_id, PWS_ACCOUNT_SEND, OAUTH2Data->access_token, FALSE); in oauth2_check_passwds()
595 OAUTH2Data->access_token = NULL; in oauth2_init()