CouchDB 添加没有预定义管理员的用户
CouchDB add user without predefined admin
我只想创建一个带有 CouchDB 后端的独立应用程序,但我不知道是否可以在不使用管理员凭据的情况下添加新的(普通)用户。
在文档中,我刚刚获得了有关创建管理员用户和现有用户权限的信息:
Only administrators may browse list of all documents (GET
/_users/_all_docs) Only administrators may listen to changes feed
(GET /_users/_changes)
Only administrators may execute design functions like views, shows and
others
There is a special design document _auth that cannot be modified
Every document except the design documents represent registered
CouchDB users and belong to them
Users may only access (GET /_users/org.couchdb.user:Jan) or modify
(PUT /_users/org.couchdb.user:Jan) documents that they own
Here 是文档的相关部分。
简答:
是的,你可以
如果您必须使用管理员凭据来创建帐户,那么注册就没有意义。无论如何,这是一个例子:
在这个主题中也可以用到这篇文章:
http://www.staticshin.com/programming/easy-user-accounts-management-with-couchdb
还有一个提示:
Creating regular users in CouchDB
我只想创建一个带有 CouchDB 后端的独立应用程序,但我不知道是否可以在不使用管理员凭据的情况下添加新的(普通)用户。 在文档中,我刚刚获得了有关创建管理员用户和现有用户权限的信息:
Only administrators may browse list of all documents (GET /_users/_all_docs) Only administrators may listen to changes feed (GET /_users/_changes)
Only administrators may execute design functions like views, shows and others
There is a special design document _auth that cannot be modified
Every document except the design documents represent registered CouchDB users and belong to them
Users may only access (GET /_users/org.couchdb.user:Jan) or modify (PUT /_users/org.couchdb.user:Jan) documents that they own
Here 是文档的相关部分。
简答:
是的,你可以
如果您必须使用管理员凭据来创建帐户,那么注册就没有意义。无论如何,这是一个例子:
在这个主题中也可以用到这篇文章: http://www.staticshin.com/programming/easy-user-accounts-management-with-couchdb
还有一个提示: Creating regular users in CouchDB