In the older SDK, you could authenticate with the same username & password for multiple buckets by specifying username in the config file…
But for the current SDK you cannot add a username attribute to the config files, which is frustrating and i have to create 3-5 separate users for each bucket instead of 1 user for all the necessary buckets. Currently this is only available via authentication via code.
What version of Couchbase Server are you using? If you’re using 5.x and RBAC, you can provide a single username/password in the configuration that will authenticate for all buckets. This is done with the “username” and “password” attributes on the root configuration element, i.e.: