-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add settings to CredentialPayload #23690
Conversation
fea2da7
to
0e307e3
Compare
Added some comments for the allow fields. I also did a rebase and dealt with the NEWS conflict. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how much people have been depending on the internal LibGit2 implementation, but I'd clarify a few more points in the NEWS.md just in case. Apart from that I think this is good to merge after a rebase with passing tests.
NEWS.md
Outdated
@@ -443,6 +443,10 @@ Deprecated or removed | |||
this is not true. If you are certain you need the old behavior, it is temporarily available | |||
as `Base._isleaftype` ([#17086]). | |||
|
|||
* Constructors for `LibGit2.UserPasswordCredentials` and `LibGit2.SSHCredentials` no longer take a | |||
`prompt_if_incorrect` argument. Controlling prompting behavior has been moved to | |||
`LibGit2.CredentialPayload`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to also clarify a few points:
prompt_if_incorrect
has also been renamed toallow_prompt
in theCredentialPayload
use_ssh_agent
is now a Bool vsChar
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll update the news to mention allow_prompt
. As for change to use_ssh_agent
in CredentialPayload
I'll avoid mentioning that since the entire CredentialPayload
is new to 0.7.
Removes `prompt_if_incorrect` field from `SSHCredentials` and `UserPasswordCredentials` and replaces it with the `allow_prompt` field in `CredentialPayload`. Note that allowing prompting is now the default. Note: Although we can deprecate when people specify a boolean for the `prompt_if_incorrect` parameter we cannot detect if people were reliant on prompting being disabled by default.
0e307e3
to
e27c77d
Compare
Allows users to control whether the SSH agent or prompting should be allowed when authenticating. Removes the last piece of payload state stored in
UserPasswordCredentials
andSSHCredentials
. With the removal ofprompt_if_incorrect
we can deprecate most of the original constructors.Part of #20725.