Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement minimal support for chained credential store helpers #1002

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mschlumpp
Copy link

Tools such as git-credential-oauth rely on a chained helper configuration to store the acquired credentials.

Unimplemented features in this PR:

  • This does not pass on properties other than username and password (Notable other properties would be password_expiry_utc, oauth_refresh_token).
  • It does not check the password_expiry_utc property, and instead relies on the timeout config of the cache helper.

Note: git-credential-oauth does not seem to make use of these features at the moment.

The helper entry is a multivar option. This allows chaining multiple
helpers after each other.
When a helper returned some credential allow "store" helpers to save
that credential. Helpers that don't understand the command will ignore
this request.
This enables the usage of the Git-bundled cache/store helpers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant