By: Isha Kandaswamy

Authentication and authorization to the query service in couchbase works in multiple ways –

  1. Passing credentials through a rest request — curl http://localhost:8093/query/service?pretty=true -d “statement=select * from system:keyspaces” -u Admin:pwd
  2. Passing credentials using the creds named parameter and/or query parameter — curl http://localhost:8093/query/service?pretty=true

Couchbase

The world’s best open source database for building scalable, high performance web, mobile & IoT applications. www.couchbase.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store