Rails有内置的身份验证系统吗?

时间:2023-01-15 19:05:12

I have implemented authentication systems for webapps several times over the years, but before I do it once more, I thought I'd ask if there's a canned solution I should know about.

多年来,我已经多次为webapps实现了身份验证系统,但在我再次执行之前,我想我会问是否有一个我应该知道的固定解决方案。

Last time I checked, there was no built-in Rails authentication system and the standard solution was the restful-authentication plugin. Is that still the case? Or perhaps it's been folded into Rails itself by now? I've seen that happen.

上次我检查时,没有内置的Rails身份验证系统,标准解决方案是restful-authentication插件。那还是这样吗?或许它现在已被折叠到Rails中了?我已经看到了这种情况。

2 个解决方案

#1


5  

Restful-authentication is still the standard. If you haven't look at the plugin for a while, the source has moved to Github

Restful-authentication仍然是标准。如果你有一段时间没有看插件,那么源代码已移至Github

#2


6  

I'd now suggest AuthLogic instead of restful-auth, it is far less intrusive but less supported (restful-auth is included in things like bort).

我现在建议使用AuthLogic而不是restful-auth,它的侵入性要小得多,但支持度较低(restful-auth包含在像bort这样的东西中)。

#1


5  

Restful-authentication is still the standard. If you haven't look at the plugin for a while, the source has moved to Github

Restful-authentication仍然是标准。如果你有一段时间没有看插件,那么源代码已移至Github

#2


6  

I'd now suggest AuthLogic instead of restful-auth, it is far less intrusive but less supported (restful-auth is included in things like bort).

我现在建议使用AuthLogic而不是restful-auth,它的侵入性要小得多,但支持度较低(restful-auth包含在像bort这样的东西中)。