I tried to use null right after your email.
You don't use Couchdb login because you use your own way of
authentication/authorization?
or
You don't use Couchdb login because you don't need to deal with it?
Just curious of other approaches
Thank you
Alex
On 24/07/12 17:37, Keith Gable wrote:
Well, the examples you put in your original post don't show you trying null
- they show you trying an empty string, which would be different in JSON,
but possibly the same to CouchDB.
Someone a bit more knowledgeable is going to have to help I guess; I don't
use logins.
On Jul 24, 2012 9:30 AM, "Aliaksandr Barysiuk" <[email protected]> wrote:
Yes,
in different variations - still no success
On 24/07/12 17:26, Keith Gable wrote:
Did you try "password": null?
On Jul 24, 2012 8:55 AM, "Aliaksandr Barysiuk" <[email protected]>
wrote:
Hello,
Is it possible to create user without a password? I tried to create user
like this
curl -X POST http://say.couchdb:5984/_users -d
'{"_id":"org.couchdb.user:*
*test", "name":"test", "roles":[], "type" : "user"}' -H
"Content-Type:application/****json"
...and like this:
curl -X POST http://say.couchdb:5984/_users -d
'{"_id":"org.couchdb.user:*
*test", "name":"test", "roles":[], "type" : "user", *"password" : ""*}'
-H "Content-Type:application/****json"
..then i tried:
curl -X POST
http://say.couchdb:5984/_****session<http://say.couchdb:5984/_**session>
<http://say.couchdb:**5984/_session <http://say.couchdb:5984/_session>>-d
"{'name':'test', 'password':''}"
or
curl -X POST
http://say.couchdb:5984/_****session<http://say.couchdb:5984/_**session>
<http://say.couchdb:**5984/_session <http://say.couchdb:5984/_session>>-d
"{'name':'test'}"
and always get {"error":"unauthorized","****reason":"Name or password is
incorrect."}.
Thank's
Alex