Hi. Does the Java DCP Client support for Couchbase 5.0 Role-based Access Control on buckets?
Hi Nick,
Yes. Specify the username and password like this when initializing the client:
Client client = Client.configure()
.bucket("travel-sample")
.username("groucho")
.password("swordfish")
// etc
.build()
Make sure the user has the “Data DCP Reader” role for the bucket.
Thanks,
David
1 Like