How can I make user creation public, but read access is denied in CouchDB?

I would like to make the user creation publicly available so that unauthenticated users can create new accounts in _users, but only provide read privileges for roles admin. Is it possible? How?

+4
source share
1 answer

CouchDB 1.1.0 and upcoming 1.1.1 do not support this. The best you can do is create a public database in which users send requests for user accounts, and you have a separate tool for responding to this and creating regular user accounts. (A stand-alone tool may simply be a specialized webpage that you log in as an administrator.)

I introduced a patch to do what you described. The CouchDB incoming message database is called , it allows unprivileged users to write some approved documents to the database, but they cannot read any data. Creating new user accounts is why I made the fix.

, 1.2, 1.3.

+6

All Articles