This callback is usually involved any time another system might need
authentication. As such, you are expected to provide a valid
git_credential object back, depending on allowed_types (a
git_credential_t bitmask).
Note that most authentication details are your responsibility - this
callback will be called until the authentication succeeds, or you report
an error. As such, it's easy to get in a loop if you fail to stop providing
the same incorrect credentials.
Credential acquisition callback.
This callback is usually involved any time another system might need authentication. As such, you are expected to provide a valid git_credential object back, depending on allowed_types (a git_credential_t bitmask).
Note that most authentication details are your responsibility - this callback will be called until the authentication succeeds, or you report an error. As such, it's easy to get in a loop if you fail to stop providing the same incorrect credentials.