简体   繁体   English

我应该在CouchDB上运行Rails 3使用哪个身份验证gem /插件?

[英]Which authentication gem/plugin should I use for Rails 3 running on CouchDB?

I'm building a Rails 3 application on CouchDB (using SimplyStored gem) and I'd like to use some existing gem/plugin for authentication, instead of building it from scratch. 我正在CouchDB上构建一个Rails 3应用程序(使用SimplyStored gem),我想使用一些现有的gem / plugin进行身份验证,而不是从头开始构建它。

Problem is, I can't find anything that works smoothly for CouchDB, everything assumes that you're running on ActiveRecord. 问题是,我找不到任何适用于CouchDB的东西,一切都假定你在ActiveRecord上运行。 Do you have any tips? 你有什么建议吗?

尝试使用CouchRest_Model

So, in the end I've used heavily customized Clearance gem for authentication. 所以,最后我使用了大量定制的Clearance gem进行身份验证。 It's very flexible, so you're able to use it even for NoSQL database - but you have to rewrite most of the functionality (not by monkey-patching, all within limits of Clearance customization), which probably takes more effort that to write whole authentication from scratch. 它非常灵活,所以你甚至可以在NoSQL数据库中使用它 - 但你必须重写大部分功能(不是通过猴子修补,所有都在清除自定义的范围内),这可能需要更多的努力来编写整个从头开始验证。 While a good-enough solution, but I'm sure there better ones. 虽然这是一个足够好的解决方案,但我确信还有更好的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM