Skip to content

Support authentication in push example #5904

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

Merged

Conversation

pluehne
Copy link
Contributor

@pluehne pluehne commented Jun 2, 2021

This adds basic support for user/password and SSH authentication to the push example. Authentication is implemented by using the cred_acquire_cb credential callback defined in examples/common.c.

We think that supporting authentication is valuable because pushing to a target repository requires authentication in most practical applications (especially for testing). Also, we would like to use this extended version of the push example in a reproduction step of an issue we are going to submit (this makes reproducing the issue easier than having to build and debug a separate code example).

This adds basic support for user/password and SSH authentication to the
push example. Authentication is implemented by using the cred_acquire_cb
credential callback defined in examples/common.c.

Co-authored-by: Marius Knaust <marius.knaust@gmail.com>
holzschu pushed a commit to holzschu/libgit2 that referenced this pull request Jun 10, 2021
personalizedrefrigerator pushed a commit to personalizedrefrigerator/libgit2 that referenced this pull request Jul 30, 2021
@ethomson ethomson merged commit 198a1b2 into libgit2:main Dec 21, 2023
@pluehne pluehne deleted the support-authentication-in-push-example branch December 22, 2023 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants