This code will not work:
var config = TestConfiguration.GetDefaultConfiguration();
|
var authenticator = new PasswordAuthenticator("myuser", "myuserpassword");
|
config.SetAuthenticator(authenticator);
|
|
ClusterHelper.Initialize(config);
|
var bucket = ClusterHelper.GetBucket("default");
|
The reason being that "default" and null will be used instead of the username and password from the IAuthenticator.
Tests exist to show that SetAuthenticate was intended to be used to pass the IAuthenticator, however this is an internal method, so it will not work for any external applications:
https://github.com/couchbase/couchbase-net-client/commit/332ffebfc2284602d736b65183892f812ebd95f2