Couchbase Bucket authentication error

混江龙づ霸主 提交于 2019-12-01 19:05:51

In Couchbase Server 5.0, role-based access controls were introduced. You must now create a user with a name that matches the bucket name and use that user's password when opening the bucket. The user must have a role with access rights to the bucket.

Cluster cluster = CouchbaseCluster.create();
Bucket bucket = cluster.openBucket("hero", "password");

See this Couchbase forum post for more information: V5.0 - NEW Role-Based Authentication - Bucket Passwords, etc

SDK Users

  • Continue to use your current SDK versions to access buckets where there is a user, with proper permissions, with the same name as the bucket.
  • Upgrade to the latest SDK versions to access the newer Authentication and User Management functions that are now available.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!