Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created April 5, 2014 23:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/9999552 to your computer and use it in GitHub Desktop.
Save isaacs/9999552 to your computer and use it in GitHub Desktop.
[gh:npm/npmjs.org/master]isaacs@urdva:~/dev/npm/npmjs.org v0.10.27-pre
$ curl -X PUT http://localhost:5984/_users/org.couchdb.user:test2 -d '{"_id":"org.couchdb.user:test2","name":"test2","type":"user","password_scheme":"pbkdf2","derived_key":"1fad272c84df361e99c210bd0f2c02bf20ce2d8e","salt":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","iterations":"10","type":"user","roles":[]}' -H content-type:application/json
{"ok":true,"id":"org.couchdb.user:test2","rev":"1-acde7b60cc61776160824f3263af405a"}
[gh:npm/npmjs.org/master]isaacs@urdva:~/dev/npm/npmjs.org v0.10.27-pre
$ curl http://localhost:5984/_users/org.couchdb.user:test2 -u test2:asdfasdfasfasdfasdfaf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment