]> git.ipfire.org Git - thirdparty/git.git/commit
osxkeychain: store new attributes
authorBo Anderson <mail@boanderson.me>
Sat, 17 Feb 2024 23:34:56 +0000 (23:34 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Apr 2024 22:38:20 +0000 (15:38 -0700)
commitd5b35bba86e6fdf0484ea71bf5b8ef1167f14015
tree4a19453fdf7ff5f956df0fa092d7a46a1e7b451a
parente3cef40db89f5a7c91f4e9d6c4959ca1e41f4647
osxkeychain: store new attributes

d208bfdfef (credential: new attribute password_expiry_utc, 2023-02-18)
and a5c76569e7 (credential: new attribute oauth_refresh_token,
2023-04-21) introduced new credential attributes but support was missing
from git-credential-osxkeychain.

Support these attributes by appending the data to the password in the
keychain, separated by line breaks. Line breaks cannot appear in a git
credential password so it is an appropriate separator.

Fixes the remaining test failures with osxkeychain:

    18 - helper (osxkeychain) gets password_expiry_utc
    19 - helper (osxkeychain) overwrites when password_expiry_utc
    changes
    21 - helper (osxkeychain) gets oauth_refresh_token

Signed-off-by: Bo Anderson <mail@boanderson.me>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/credential/osxkeychain/git-credential-osxkeychain.c