Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails, OpenID and Authlogic

I've been following ryan baytes screencast #170 and adding ruby-openid, authlogic and authlogic-oid to an existing authlogic authentication system.

However, I keep getting the following stack of errors:

NameError (uninitialized constant OpenIdAuthentication::InvalidOpenId): /Library/Ruby/Gems/1.8/gems/authlogic-oid-1.0.4/lib/authlogic_openid/session.rb:53:in openid_identifier=' /Library/Ruby/Gems/1.8/gems/authlogic-oid-1.0.4/lib/authlogic_openid/session.rb:47:incredentials=' authlogic (2.1.2) lib/authlogic/session/foundation.rb:28:in initialize' authlogic (2.1.2) lib/authlogic/session/password.rb:140:ininitialize' authlogic (2.1.2) lib/authlogic/session/activation.rb:48:in initialize' authlogic (2.1.2) lib/authlogic/session/klass.rb:61:ininitialize' authlogic (2.1.2) lib/authlogic/session/scopes.rb:79:in initialize' app/controllers/user_sessions_controller.rb:10:innew' app/controllers/user_sessions_controller.rb:10:in `create'

Is there anyone who's facing the same kind of problem? I'm using rails 2.3.4

I've tried binary's example app which is working perfectly well (rails 2.1.2), I've tried the code provided by Ryan Bates and it is working well too (rails 2.3.2). So, the libraries are working with previous versions of rails.

Any clues?

like image 449
cnikolaou Avatar asked Jan 26 '10 13:01

cnikolaou


1 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 190
Jessy Avatar answered Oct 22 '22 03:10

Jessy