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
(1 << 0)

A vanilla user/password request

GIT_CREDENTIAL_SSH_KEY
(1 << 1)

An SSH key-based authentication request

GIT_CREDENTIAL_SSH_CUSTOM
(1 << 2)

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

GIT_CREDENTIAL_DEFAULT
(1 << 3)

An NTLM/Negotiate-based authentication request.

GIT_CREDENTIAL_SSH_INTERACTIVE
(1 << 4)

An SSH interactive authentication request

GIT_CREDENTIAL_USERNAME
(1 << 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
(1 << 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