Java DCP Client support for Couchbase 5.0 Role-based Access Control on buckets

dcp

#1

Hi. Does the Java DCP Client support for Couchbase 5.0 Role-based Access Control on buckets?


#2

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