archive mirror
 help / color / mirror / Atom feed
* git-credential-oauth
@ 2022-11-08 11:12 M Hickford
  0 siblings, 0 replies; only message in thread
From: M Hickford @ 2022-11-08 11:12 UTC (permalink / raw)
  To: git; +Cc: peff

Hi all. I'm excited to share git-credential-oauth, a Git credential
helper that securely authenticates to GitHub, GitLab, BitBucket and
other forges using OAuth.

The target user currently uses personal access tokens with
git-credential-store or git-credential-cache. I suspect most readers
of this list use SSH keys to authenticate, but you're welcome to try
it out with HTTPS remotes.

> The first time you push, the helper will open a browser window to authenticate. Subsequent pushes within the cache timeout require no interaction.

This read-only credential-generating helper is designed to be used in
conjunction with existing storage helpers. It's neat how the
credential system supports multiple helpers. With the config below,
Git checks the cache for a stored credential before generating a fresh

> [credential]
>   helper =
>   helper = cache --timeout 7200 # two hours
>   helper = oauth

Comments and suggestions welcome.

ps. Git Credential Manager already has this feature so why another
helper? git-credential-oauth is a simpler app that just does OAuth.
It's developed in Go so should be easy to package for Linux distros.
The install size is smaller.  For a full comparison, see

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-08 11:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-08 11:12 git-credential-oauth M Hickford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).