Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Authlogic openid with multiple openid identifiers per account

How would you go about allowing a user to log in with multiple openid accounts and optionally a password, using authlogic?

like image 594
Sam Saffron Avatar asked Aug 18 '09 01:08

Sam Saffron


1 Answers

Looks like if you set the find_by_openid_method, you can reference anything: http://authlogic-oid.rubyforge.org/

From the docs:

class User < ActiveRecord::Base
  def self.find_by_openid_identifier(identifier)
    user.first(:conditions => {:openid_identifiers => {:identifier => identifier}})
  end
end
like image 191
stonean Avatar answered Oct 13 '22 00:10

stonean