git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] Docs: describe how a credential-generating helper works
@ 2022-11-12  1:44 M Hickford via GitGitGadget
  2022-11-14 23:18 ` Taylor Blau
  2022-11-17 17:28 ` Matthew John Cheetham
  0 siblings, 2 replies; 4+ messages in thread
From: M Hickford via GitGitGadget @ 2022-11-12  1:44 UTC (permalink / raw)
  To: git; +Cc: M Hickford, M Hickford

From: M Hickford <mirth.hickford@gmail.com>

Previously the docs only described storage helpers.

A concrete example: Git Credential Manager can generate credentials
for GitHub and GitLab via OAuth.
https://github.com/GitCredentialManager/git-credential-manager

Signed-off-by: M Hickford <mirth.hickford@gmail.com>
---
    Docs: describe how a credential-generating helper works
    
    Previously the docs only described storage helpers.
    
    A concrete example: Git Credential Manager can generate credentials for
    GitHub and GitLab via OAuth.
    https://github.com/GitCredentialManager/git-credential-manager
    
    Signed-off-by: M Hickford mirth.hickford@gmail.com

Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-1379%2Fhickford%2Fcredential-generator-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-1379/hickford/credential-generator-v1
Pull-Request: https://github.com/git/git/pull/1379

 Documentation/gitcredentials.txt | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/Documentation/gitcredentials.txt b/Documentation/gitcredentials.txt
index 80517b4eb2c..72888402e73 100644
--- a/Documentation/gitcredentials.txt
+++ b/Documentation/gitcredentials.txt
@@ -61,7 +61,9 @@ for a password. It is generally configured by adding this to your config:
 
 Credential helpers, on the other hand, are external programs from which Git can
 request both usernames and passwords; they typically interface with secure
-storage provided by the OS or other programs.
+storage provided by the OS or other programs. Alternatively, a
+credential-generating helper might generate credentials for certain servers via
+some API.
 
 To use a helper, you must first select one to use. Git currently
 includes the following helpers:
@@ -286,8 +288,8 @@ For a `store` or `erase` operation, the helper's output is ignored.
 If a helper fails to perform the requested operation or needs to notify
 the user of a potential issue, it may write to stderr.
 
-If it does not support the requested operation (e.g., a read-only store),
-it should silently ignore the request.
+If it does not support the requested operation (e.g., a read-only store
+or generator), it should silently ignore the request.
 
 If a helper receives any other operation, it should silently ignore the
 request. This leaves room for future operations to be added (older

base-commit: 319605f8f00e402f3ea758a02c63534ff800a711
-- 
gitgitgadget

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Docs: describe how a credential-generating helper works
  2022-11-12  1:44 [PATCH] Docs: describe how a credential-generating helper works M Hickford via GitGitGadget
@ 2022-11-14 23:18 ` Taylor Blau
  2022-11-17 17:28 ` Matthew John Cheetham
  1 sibling, 0 replies; 4+ messages in thread
From: Taylor Blau @ 2022-11-14 23:18 UTC (permalink / raw)
  To: M Hickford via GitGitGadget; +Cc: git, M Hickford, Matthew John Cheetham

On Sat, Nov 12, 2022 at 01:44:30AM +0000, M Hickford via GitGitGadget wrote:
> From: M Hickford <mirth.hickford@gmail.com>
>
> Previously the docs only described storage helpers.
>
> A concrete example: Git Credential Manager can generate credentials
> for GitHub and GitLab via OAuth.
> https://github.com/GitCredentialManager/git-credential-manager

Thanks. I'm tagging Matthew Cheetham (cc'd) as a potential reviewer.

Thanks,
Taylor

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Docs: describe how a credential-generating helper works
  2022-11-12  1:44 [PATCH] Docs: describe how a credential-generating helper works M Hickford via GitGitGadget
  2022-11-14 23:18 ` Taylor Blau
@ 2022-11-17 17:28 ` Matthew John Cheetham
  2022-11-17 21:55   ` Taylor Blau
  1 sibling, 1 reply; 4+ messages in thread
From: Matthew John Cheetham @ 2022-11-17 17:28 UTC (permalink / raw)
  To: M Hickford via GitGitGadget, git; +Cc: M Hickford

On 2022-11-11 17:44, M Hickford via GitGitGadget wrote:

> From: M Hickford <mirth.hickford@gmail.com>
> 
> Previously the docs only described storage helpers.
> 
> A concrete example: Git Credential Manager can generate credentials
> for GitHub and GitLab via OAuth.
> https://github.com/GitCredentialManager/git-credential-manager
> 
> Signed-off-by: M Hickford <mirth.hickford@gmail.com>
> ---
>     Docs: describe how a credential-generating helper works
>     
>     Previously the docs only described storage helpers.
>     
>     A concrete example: Git Credential Manager can generate credentials for
>     GitHub and GitLab via OAuth.
>     https://github.com/GitCredentialManager/git-credential-manager
>     
>     Signed-off-by: M Hickford mirth.hickford@gmail.com
> 
> Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-1379%2Fhickford%2Fcredential-generator-v1
> Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-1379/hickford/credential-generator-v1
> Pull-Request: https://github.com/git/git/pull/1379
> 
>  Documentation/gitcredentials.txt | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/Documentation/gitcredentials.txt b/Documentation/gitcredentials.txt
> index 80517b4eb2c..72888402e73 100644
> --- a/Documentation/gitcredentials.txt
> +++ b/Documentation/gitcredentials.txt
> @@ -61,7 +61,9 @@ for a password. It is generally configured by adding this to your config:
>  
>  Credential helpers, on the other hand, are external programs from which Git can
>  request both usernames and passwords; they typically interface with secure
> -storage provided by the OS or other programs.
> +storage provided by the OS or other programs. Alternatively, a
> +credential-generating helper might generate credentials for certain servers via
> +some API.
>  
>  To use a helper, you must first select one to use. Git currently
>  includes the following helpers:
> @@ -286,8 +288,8 @@ For a `store` or `erase` operation, the helper's output is ignored.
>  If a helper fails to perform the requested operation or needs to notify
>  the user of a potential issue, it may write to stderr.
>  
> -If it does not support the requested operation (e.g., a read-only store),
> -it should silently ignore the request.
> +If it does not support the requested operation (e.g., a read-only store
> +or generator), it should silently ignore the request.
>  
>  If a helper receives any other operation, it should silently ignore the
>  request. This leaves room for future operations to be added (older
> 
> base-commit: 319605f8f00e402f3ea758a02c63534ff800a711

This looks like a good, clarifying addition to the docs!

Thanks,
Matthew

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Docs: describe how a credential-generating helper works
  2022-11-17 17:28 ` Matthew John Cheetham
@ 2022-11-17 21:55   ` Taylor Blau
  0 siblings, 0 replies; 4+ messages in thread
From: Taylor Blau @ 2022-11-17 21:55 UTC (permalink / raw)
  To: Matthew John Cheetham; +Cc: M Hickford via GitGitGadget, git, M Hickford

On Thu, Nov 17, 2022 at 09:28:53AM -0800, Matthew John Cheetham wrote:
> This looks like a good, clarifying addition to the docs!

Thanks, both. Will queue.

Thanks,
Taylor

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-11-17 21:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-12  1:44 [PATCH] Docs: describe how a credential-generating helper works M Hickford via GitGitGadget
2022-11-14 23:18 ` Taylor Blau
2022-11-17 17:28 ` Matthew John Cheetham
2022-11-17 21:55   ` Taylor Blau

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).