Details
-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
None
-
None
-
1
Description
Considering a snippet like this:
from couchbase.cluster import Cluster
|
from couchbase.cluster import PasswordAuthenticator
|
cluster = Cluster('couchbases://10.142.175.101?certpath=/Users/daschl/tmp/ks/chain.pem&keypath=/Users/daschl/tmp/ks/pkey.key')
|
authenticator = PasswordAuthenticator('username', 'password')
|
cluster.authenticate(authenticator)
|
cb = cluster.open_bucket('pixels')
|
cb.upsert('u:king_arthur', {'name': 'Arthur', 'email': 'kingarthur@couchbase.com', 'interests': ['Holy Grail', 'African Swallows']})
|
the code works even if its ambiguous since cert authenticator needs to be used and/or if a password is provided that would conflict with the auth modes used.