Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Authlogic OpenID error: uninitialized constant OpenIdAuthentication::InvalidOpenId

Using authlogic 2.1.3, and authlogic-oid 1.0.4 I receive the following error as soon as rails hits a controller making a request to an OpenID provider:

uninitialized constant OpenIdAuthentication::InvalidOpenId

I also have the following installed:

  • rack-openid (0.2.1)
  • ruby-openid (2.1.7)
  • rails/open_id_authentication plugin

Gems in environment.rb are configured as such:

config.gem "authlogic"
config.gem "authlogic-oid", :lib => "authlogic_openid"
config.gem "ruby-openid", :lib => "openid"

Any suggestions would be appreciated, thank you.

like image 321
Bayard Randel Avatar asked Jan 19 '10 10:01

Bayard Randel


4 Answers

rails/open_id_authentication plugin has been updated a few days ago and it breaks compatibility with the authlogic_openid gem (v=1.0.4).

Youl'll have to wait until someone fix the authlogic_openid gem (the issue)

like image 52
Jessy Avatar answered Sep 21 '22 22:09

Jessy


I resolved that issue in my authlogic_openid fork, feel free to grab this commit: http://github.com/mreinsch/authlogic_openid/commit/9b802c347f5addebcbce945af3b5f80b3ee7b214

like image 41
Michael Reinsch Avatar answered Sep 19 '22 22:09

Michael Reinsch


I was having the same trouble and I really wanted open-id with authlogic, so I copied an old version of plugin from one of Ryan Bates' railscasts apps.

Here's the link [email protected]:senthilnambi/open-id.git. Install it like normally and you should be fine.

Hope this helps. :)

like image 39
sent-hil Avatar answered Sep 23 '22 22:09

sent-hil


Just like senthil provided, but with no @ at URL:

script/plugin install git://github.com/senthilnambi/open-id.git

Then I erase the old (plugin/gem) who does not work

like image 42
Fabiano Soriani Avatar answered Sep 23 '22 22:09

Fabiano Soriani