ruby-on-rails - 每个帐户具有多个 openid 标识符的 Authlogic openid

标签 ruby-on-rails ruby openid authlogic

您将如何使用 authlogic 允许用户使用多个 openid 帐户和可选的密码登录?

最佳答案

看起来如果你设置了 find_by_openid_method,你可以引用任何东西:http://authlogic-oid.rubyforge.org/

来自文档:

class User < ActiveRecord::Base
  def self.find_by_openid_identifier(identifier)
    user.first(:conditions => {:openid_identifiers => {:identifier => identifier}})
  end
end

关于ruby-on-rails - 每个帐户具有多个 openid 标识符的 Authlogic openid,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1291363/

相关文章:

ruby-on-rails - 使用 'intentional' 无效数据验证模型

mysql - 我是否应该将带有 latin1_swedish_ci 排序规则的 MySQL 数据库迁移到 utf-8,如果是,如何迁移?

ruby - (Ruby)带有 PG 的 ActiveRecord 尝试将本地用户连接到远程服务器

android - Android 上的 OpenId

openid - 在 Azure 中使用 OpenID 身份验证的最佳方式?

ruby-on-rails - Ajax 发布点击 Action ,无需使用 CanCan 和 Devise 进行身份验证

ruby-on-rails - 嵌套 has_many :through in rails 3

ruby - 创建一个 titleize 方法,不包括 "little words"。

ruby-on-rails - Ruby on Rails 上的客户端取消对后端的请求后会发生什么?

openid - 将 OpenID 委托(delegate)给 Google(而非 Google Apps)