Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-u command does not work #24

Closed
varunvt126 opened this issue Aug 31, 2016 · 4 comments
Closed

-u command does not work #24

varunvt126 opened this issue Aug 31, 2016 · 4 comments

Comments

@varunvt126
Copy link

No description provided.

@NickCarneiro
Copy link
Member

Can you provide a few example commands?

@xiaolin
Copy link

xiaolin commented Sep 17, 2016

curl "https://api.test.com/" -u ":some_password"
or
curl "https://api.test.com/" -u "some_username:some_password"

@imravichaudhary
Copy link

curl -X PUT http://localhost:5984/test/_security -u "admin:123" -d '{"admins":{"names":[], "roles":[]}, "readers":{"names":["joe"],"roles":[]}}'

@NickCarneiro
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants