git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] credential/osxkeychain: store new attributes

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 14, 2024, 18:25 UTC
Message-ID
<xmqqzfw2vr7c.fsf@gitster.g>
In-Reply-To
<pull.1663.git.1707860618119.gitgitgadget@gmail.com>
"M Hickford via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 19 quoted lines
> From: M Hickford <mirth.hickford@gmail.com>
>
> d208bfd (credential: new attribute password_expiry_utc, 2023-02-18)
> and a5c76569e7 (credential: new attribute oauth_refresh_token)
> introduced new credential attributes.
>
> Similar to 7144dee3 (credential/libsecret: erase matching creds only,
> 2023-07-26), we encode the new attributes in the secret, separated by
> newline:
>
>     hunter2
>     password_expiry_utc=1684189401
>     oauth_refresh_token=xyzzy
>
> This is extensible and backwards compatible. The credential protocol
> already assumes that attribute values do not contain newlines.
>
> Signed-off-by: M Hickford <mirth.hickford@gmail.com>
> ---

OK, this adds both oauth_refresh_token and password_expiry_utc, unlike the recent one for wincred, which already stored the expiry but the support for oauth_refresh_token was added with f061959e (credential/wincred: store oauth_refresh_token, 2024-01-28).

Show 12 quoted lines
>     [RFC] contrib/credential/osxkeychain: store new attributes
>     
>     Is any keen MacOS user interested in building and testing this RFC
>     patch? I personally don't have a MacOS machine, so haven't tried
>     building it. Fixes are surely necessary. Once it builds, you can test
>     the feature with:
>     
>     GIT_TEST_CREDENTIAL_HELPER=osxkeychain ./t0303-credential-external.sh
>     
>     
>     The feature would help git-credential-oauth users on MacOS
>     https://github.com/hickford/git-credential-oauth/issues/42
I do not use macOS to use this on, so let's see how others can help.
Thanks.  Will queue.
Previous: M Hickford via GitGitGadgetNext: M Hickford
Message 2 of 6 in “credential/osxkeychain: store new attributes”
  1. credential/osxkeychain: store new attributesM Hickford via GitGitGadget, Feb 13, 2024
  2. Junio C HamanoFeb 14, 2024
  3. M HickfordFeb 14, 2024
  4. M HickfordFeb 27, 2024
  5. Junio C HamanoFeb 27, 2024
  6. Jeff KingFeb 15, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.