【问题标题】:oauth2 support for authlogic: the authlogic_oauth2 gem does not work / is not supportedoauth2 对 authlogic 的支持:authlogic_oauth2 gem 不起作用/不受支持
【发布时间】:2012-01-20 02:24:34
【问题描述】:

我正在构建一个使用 authlogic 的应用程序,并且需要通过 Facebook 通过 Oauth2 框架进行身份验证。我认为使用 authlogic_oauth2 gem http://github.com/haraldmartin/authlogic_oauth2 将是小菜一碟。但是,在运行 bundle 之后,我的服务器和任何 rails 生成器都可以正常工作(如此处所述:Server won't start on using authlogic-oauth2)。

我尝试使用 robdimarco 托管的 gem 运行 bundle install,如下所示:

gem 'authlogic_oauth2', :git => 'git:github.com/robdimarco/authlogic_oauth2.git'

但这引发了错误:

ssh: connect to host git port 22: Operation timed out
fatal: The remote end hung up unexpectedly

authlogic 中不再支持 oauth2 了吗?还是我遗漏了一些明显的东西?

【问题讨论】:

  • 好的。通过更多研究的简单解决方案:这是进入您的 gemfile 的正确 gem。 gem "robdimarco_authlogic_oauth2", "~> 1.1.4"

标签: ruby-on-rails ruby-on-rails-3 facebook authlogic oauth-2.0


【解决方案1】:

您需要使用:git => 'git://github.com/robdimarco/authlogic_oauth2.git',而不是:git => 'git:github.com/robdimarco/authlogic_oauth2.git'

(网址开头的错字。)

【讨论】:

    猜你喜欢
    • 2018-05-11
    • 2020-07-30
    • 1970-01-01
    • 2018-02-05
    • 2020-01-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多