aboutsummaryrefslogtreecommitdiff
path: root/builtin/credential-cache--daemon.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-05-10 10:23:28 -0700
committerJunio C Hamano <gitster@pobox.com>2023-05-10 10:23:29 -0700
commit2ca91d1ee07f934fa7f57ba34c397b150eef023f (patch)
treed71bd150edc85eedc736f64e896acad327874343 /builtin/credential-cache--daemon.c
parentc05615e1c5876bea3c35202771d3db83b3336437 (diff)
parenta5c76569e798ad3656afe6b67f37cbbb2e47f28c (diff)
downloadgit-2ca91d1ee07f934fa7f57ba34c397b150eef023f.tar.xz
Merge branch 'mh/credential-oauth-refresh-token'
The credential subsystem learns to help OAuth framework. * mh/credential-oauth-refresh-token: credential: new attribute oauth_refresh_token
Diffstat (limited to 'builtin/credential-cache--daemon.c')
-rw-r--r--builtin/credential-cache--daemon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/credential-cache--daemon.c b/builtin/credential-cache--daemon.c
index 4e571d9951..756c5f02ae 100644
--- a/builtin/credential-cache--daemon.c
+++ b/builtin/credential-cache--daemon.c
@@ -134,6 +134,9 @@ static void serve_one_client(FILE *in, FILE *out)
if (e->item.password_expiry_utc != TIME_MAX)
fprintf(out, "password_expiry_utc=%"PRItime"\n",
e->item.password_expiry_utc);
+ if (e->item.oauth_refresh_token)
+ fprintf(out, "oauth_refresh_token=%s\n",
+ e->item.oauth_refresh_token);
}
}
else if (!strcmp(action.buf, "exit")) {