开发者

Minimal rails auth script?

Someone got a tip for a minimal rails auth script or gem? It should include just the following points:


Look into devise gem: https://github.com/plataformatec/devise

It can do a lot more than that, but it is a very easy to use gem for such a purpose.

It handles the views and passwords resets too.


Yeah, devise is great! If those are truly your requirements then I would suggest that too. If, on the other hand, you are looking for the most minimal authentication system possible, I would encourage you to consider the omniauth gem: https://github.com/intridea/omniauth

It will allow you to totally offload authentication to a third party (facebook, google, twitter, etc). This is a great way to avoid writing any of that logic at all.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜