libgit2

git_credtype_t

Version:

Supported credential types

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

Values

GIT_CREDTYPE_USERPASS_PLAINTEXT
0

A vanilla user/password request

GIT_CREDTYPE_SSH_KEY
1

An SSH key-based authentication request

GIT_CREDTYPE_SSH_CUSTOM
2

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

GIT_CREDTYPE_DEFAULT
3

An NTLM/Negotiate-based authentication request.

GIT_CREDTYPE_SSH_INTERACTIVE
4

An SSH interactive authentication request

GIT_CREDTYPE_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_CREDTYPE_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