11Credentialsπ i
( git_cred_default_new)→cred?
Create a "default" credential usable for Negotiate mechanisms like NTLM or Kerberos authentication.
( git_cred_freecred)→void?
cred:cred?
Free a credential.
This is only necessary if you own the object; that is, if you are a transport.
Check whether a credential object contains username information.
( git_cred_ssh_custom_new username publickey
publickey_len
sign_callback
payload) → cred?
sign_callback:git_cred_sign_callback
Create an ssh key credential with a custom signing function.
This lets you use your own function to sign the challenge.
This function and its credential type is provided for completeness and wraps libssh2_userauth_publickey(), which is undocumented.
The supplied credential parameter will be internally duplicated.
( git_cred_ssh_interactive_new username prompt_callback
payload) → cred?
prompt_callback:git_cred_ssh_interactive_callback
Create a new ssh keyboard-interactive based credential object. The supplied credential parameter will be internally duplicated.
( git_cred_ssh_key_from_agentusername)→cred?
Create a new ssh key credential object used for querying an ssh-agent. The supplied credential parameter will be internally duplicated.
( git_cred_ssh_key_memory_new username publickey
privatekey
passphrase) → cred?
Create a new ssh key credential object reading the keys from memory.
( git_cred_ssh_key_new username publickey
privatekey
passphrase) → cred?
Create a new passphrase-protected ssh key credential object. The supplied credential parameter will be internally duplicated.
( git_cred_username_newusername)→cred?
Create a credential to specify a username.
This is used with ssh authentication to query for the username if none is specified in the url.
user_from_url
allowed_types
payload) → cred?
Stock callback usable as a git_cred_acquire_cb. This calls git_cred_userpass_plaintext_new unless the protocol has not specified GIT_CREDTYPE_USERPASS_PLAINTEXT as an allowed type.
( git_cred_userpass_plaintext_new username password) → cred?
Create a new plain-text username and password credential object. The supplied credential parameter will be internally duplicated.