couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject how to db.create() with a server admin
Date Wed, 25 Aug 2010 01:48:44 GMT
I want a user to signup for a couchdb database on my web page
I am using couch.js functions to do this and I can create a new database on the server.

If there is no server admins it works fine. Or if I am logged in as server admin it works
But if I am logged out of futon it will not allow the user to create a db.

How can I do the couch.js db.create() if it requires a server admin account to do so?
I don't want to send my credentials with the request like http://dan:whimsica@localhost:5984
then someone could read that from the javascript.

I don't understand how you are supposed to do this.
I also can't be logged in all the time.

How can this work if the login:pass have to be in the javascript?




  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message