您需要omniauth才能与考拉一起工作吗?
我是一个 Rails 新手,我想知道是否必须拥有omniauth 才能与 koala 一起工作。例如,如果我遵循此网站代码, http:// udooz.net/blog/2011/02/facebook-app-using-rails-koala/,我是否需要已经设置omniauth才能这样做?
I am a rails newbie and I was wondering if you have to have omniauth in order to work with koala. For example, if I followed this sites code, http://udooz.net/blog/2011/02/facebook-app-using-rails-koala/, would I need omniauth already set up to do so?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不。在该特定示例中,所有内容看起来都应该按原样工作(免责声明:我自己没有尝试过该示例。)一般来说,Koala 不需要 OmniAuth。
OmniAuth 为您提供的是一个单一的宝石,让您可以使用您选择的第三方身份验证系统轻松地对用户进行身份验证。如果您正在考虑允许用户不仅仅使用 Facebook 凭据(例如 Twitter 或 Open ID 凭据)进行登录,这会很有用。
为了完整起见,该博客文章的大部分信息来自 Github 上的 Koala wiki:https://github.com/arsduo/koala/wiki/Koala-on-Rails
No. In that particular example, everything there looks like it should work as is (disclaimer: I have not tried the example myself.) In general, Koala doesn't require OmniAuth.
What OmniAuth gives you is a single gem to let you easily authenticate users with your choice of third-party authentication systems. It would be useful if you are considering allowing your users to login with more than just their Facebook credentials, like Twitter or Open ID credentials.
For completeness, here's the source of most of the information of that blog post from the Koala wiki on Github: https://github.com/arsduo/koala/wiki/Koala-on-Rails
您不需要 OmniAuth。我只用过考拉。
You don't need OmniAuth. I've used Koala only.