Rails3 OAuth 插件

发布于 2024-11-27 06:47:44 字数 394 浏览 3 评论 0原文

您好,我在 Rails 3 应用程序上安装了 OAuth 插件,将其变成 OAuth 提供程序。

我按照 Rails 3 下 https://github.com/pelle/oauth-plugin 的说明进行操作 但是,

根据说明,它显示以下内容:

它需要一个身份验证框架,例如acts_as_authentication、restful_authentication 或restful_open_id_authentication。 它还需要 Rails 2.0。

我对它说需要 Rails 2.0 感到困惑。我是否还必须安装 Rails 2.0?谢谢

Hi I installed OAuth Plugin on my Rails 3 app to turn it into an OAuth Provider.

I followed the instruction from https://github.com/pelle/oauth-plugin under Rails 3.

But, under the instructions it says the following:

It requires an authentication framework such as acts_as_authenticated, restful_authentication or restful_open_id_authentication. It also requires Rails 2.0.

I am puzzled by the fact that it says Rails 2.0 is required. Do I have to install Rails 2.0 as well somehow? Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

伴我老 2024-12-04 06:47:44

不,不应该。

确保你的 Gemfile 中有高于 0.4.0 的东西,因为指令说

gem "oauth-plugin", ">= 0.4.0.pre1"

Rails 3 永远不会允许你加载 Rails 2,它会崩溃。

No, it shouldn't.

Make sure you have something higher than 0.4.0 in your Gemfile, as the instruction say

gem "oauth-plugin", ">= 0.4.0.pre1"

Rails 3 will never allow you to load Rails 2, its going to implode.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文