MCPcopy Index your code
hub / github.com/couchbase/couchbase-python-client / as_dict

Method as_dict

couchbase/auth.py:83–93  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81 return ['username', 'password', 'cert_path', 'sasl_mech_force', 'allowed_sasl_mechanisms']
82
83 def as_dict(self):
84 d = {
85 'username': self._username,
86 'password': self._password,
87 'allowed_sasl_mechanisms': self._allowed_sasl_mechanisms
88 }
89 if self._cert_path is not None:
90 # couchbase++ wants this to be the trust_certificate
91 d['trust_store_path'] = self._cert_path
92
93 return d
94
95 @staticmethod
96 def ldap_compatible(username, # type: str

Calls

no outgoing calls