Closed varunvt126 closed 7 years ago
curl "https://api.test.com/" -u ":some_password"
or
curl "https://api.test.com/" -u "some_username:some_password"
curl -X PUT http://localhost:5984/test/_security -u "admin:123" -d '{"admins":{"names":[], "roles":[]}, "readers":{"names":["joe"],"roles":[]}}'
I've added basic auth support for python, node, and php in 0.0.27. The code is live.
Thank you for providing examples, @xiaolin and @imravichaudhary.
Can you provide a few example commands?