N1QL authentication

In order to run queries on a bucket protected by SASL password, what username and password should I be using? Using the admin credentials work, but I don’t want to hand that out to everyone that wants to run a query. The bucket has a password, not a username. Using the bucket password with admin username doesn’t work.

Use the bucket name as username and the bucket password as the password.

Thank you @ingenthr, I’ve verified that using the bucket name for username works.

Note that the Java SDK will automatically put the credentials of the Bucket instance you call query() from into the N1QL request, as a HTTP header.