Authentication¤
CouchbaseAuthenticator¤
CouchbasePasswordAuthenticator¤
Bases: CouchbaseAuthenticator
Parameters:
-
username
(str
, default:from_env_var('CB_USERNAME')
) –Username to use for authentication.
-
password
(str
, default:from_env_var('CB_PASSWORD')
) –Password to use for authentication.
-
cert_path
(str
, default:None
) –Path of the certificate trust store. Defaults to None.
Source code in src/couchbase_haystack/document_stores/auth.py
to_dict ¤
Serializes the component to a dictionary.
:returns: Dictionary with serialized data.
Source code in src/couchbase_haystack/document_stores/auth.py
from_dict
classmethod
¤
Deserializes the component from a dictionary.
:param data: Dictionary to deserialize from. :returns: Deserialized component.
Source code in src/couchbase_haystack/document_stores/auth.py
CouchbaseCertificateAuthenticator¤
Bases: dict
Certificate-based authenticator for Couchbase.
Parameters:
-
cert_path
(str
, default:None
) –Path to the client certificate file. Defaults to None.
-
key_path
(str
, default:None
) –Path to the client key file. Defaults to None.
-
trust_store_path
(str
, default:None
) –Path to the certificate trust store. Defaults to None.
Source code in src/couchbase_haystack/document_stores/auth.py
to_dict ¤
Serializes the component to a dictionary.
:returns: Dictionary with serialized data.
Source code in src/couchbase_haystack/document_stores/auth.py
from_dict
classmethod
¤
Deserializes the component from a dictionary.
:param data: Dictionary to deserialize from. :returns: Deserialized component.