Authentication handler in drracket
This commit is contained in:
@@ -361,3 +361,23 @@ Returns the ordered @racket['stdout]/@racket['stderr] output items from the
|
||||
failed Git process.
|
||||
}
|
||||
|
||||
|
||||
|
||||
@section{Authentication}
|
||||
|
||||
@defproc[(default-git-authentication-handler
|
||||
[cmd symbol?]
|
||||
[args list?]
|
||||
[e exn:fail:git-auth?])
|
||||
boolean?]{
|
||||
Handles one authentication failure. An existing Git credential helper is tried
|
||||
first. If no helper is configured, git-cli requests a username and
|
||||
password/token using @racket[input-prompt], configures Git's non-persistent
|
||||
@tt{cache} credential helper locally, approves the credential, and returns
|
||||
@racket[#t] so the original command can be retried once.
|
||||
}
|
||||
|
||||
@defparam[current-git-authentication-handler handler procedure?]{
|
||||
Contains the authentication callback used after a recognized authentication
|
||||
failure. Its default value is @racket[default-git-authentication-handler].
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user