libgit2

git_credential_t

Version:

Supported credential types

This represents the various types of authentication methods supported by the library.

Values

GIT_CREDENTIAL_USERPASS_PLAINTEXT
0

A vanilla user/password request

GIT_CREDENTIAL_SSH_KEY
1

An SSH key-based authentication request

GIT_CREDENTIAL_SSH_CUSTOM
2

An SSH key-based authentication request, with a custom signature

GIT_CREDENTIAL_DEFAULT
3

An NTLM/Negotiate-based authentication request.

GIT_CREDENTIAL_SSH_INTERACTIVE
4

An SSH interactive authentication request

GIT_CREDENTIAL_USERNAME
5

Username-only authentication request

Used as a pre-authentication step if the underlying transport (eg. SSH, with no username in its URL) does not know which username to use.

GIT_CREDENTIAL_SSH_MEMORY
6

An SSH key-based authentication request

Allows credentials to be read from memory instead of files. Note that because of differences in crypto backend support, it might not be functional.

Versions