Authentication

PasswordAuthenticator

class couchbase.auth.PasswordAuthenticator(username, password, cert_path=None)

Password authentication mechanism.

Parameters
  • username (str) – Username to use for authentication.

  • password (str) – Password to use for authentication.

  • cert_path (str, optional) – Path of the certificate trust store. Defaults to None.

CertificateAuthenticator

class couchbase.auth.CertificateAuthenticator(cert_path=None, key_path=None, trust_store_path=None)

Certificate authentication mechanism.

Parameters
  • cert_path (str) – Path to the client certificate. Defaults to None.

  • key_path (str) – Path to the client key. Defaults to None.

  • trust_store_path (str, optional) – Path of the certificate trust store. Defaults to None.