CouchDB的阅读认证 [英] couchdb read authentication

查看:75
本文介绍了CouchDB的阅读认证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何处理读取CouchDB的认证?我知道角色可以在单独的数据库中定义的,但我想实施文档级读验证。我正在考虑使用Node.js的,但它似乎一个优雅的解决方案不会因为CouchDB中也有一个HTTP服务器,我不想多加一个(或类似Ruby或Python另一个应用服务器)。有没有人在这方面的工作?

how can i handle read authentication in couchdb? i know roles can be defined in seperate databases but i want to implement read authentication on document level. i am thinking about using node.js but it does not seem an elegant solution because couchdb also has a http server and i dont want to add one more (or another application server like ruby or python). is there anyone working on this?

感谢。

推荐答案

在最近O'Reilly的网络直播/ A>,J.克里斯·安德森指出,读了认证最好的部分复制,每个读者群的多个数据库的组合处理。每个数据库将包含只属于那个特定组的文件。

In the recent O'Reilly web cast on CouchDB, J. Chris Anderson mentioned that read authentication was best handled by a combination of partial replication and multiple databases per reader group. Each database would contain only the documents pertaining to that specific group.

这是很有道理的,当你认为每个读者的CouchDB作为一个权威数据库的筛选实例。

It makes the most sense when you think of each readers CouchDB as a filtered instance of an authority database.

这篇关于CouchDB的阅读认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆