Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception uninitialized constant OpenIdAuthentication::InvalidOpenId uninitialized #16

Open
DBA opened this issue Jan 27, 2010 · 8 comments

Comments

@DBA
Copy link

DBA commented Jan 27, 2010

On a new project, while trying to setup Authlogic and Authlogic OpenId I constantly run into that exception, which in turn unables me to create users / login users.

I'm using Rails 2.3.5 with the following gems:

config.gem 'authlogic', :version => '2.1.3'
config.gem 'rack-openid', :version => '0.2.2', :lib => 'rack/openid'
config.gem 'ruby-openid', :version => '2.1.7', :lib => 'openid'
config.gem 'authlogic-oid', :version => '1.0.4', :lib => 'authlogic_openid'

I'm also using the latest version of rails/open_id_authentication plugin.

Anyone could provide me with some assistance / guide me in the right direction on how to tackle this problem?

Best regards,
DBA

@sent-hil
Copy link

sent-hil commented Feb 2, 2010

"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)."
http://stackoverflow.com/questions/2092694/authlogic-openid-error-uninitialized-constant-openidauthenticationinvalidopeni

@DBA
Copy link
Author

DBA commented Feb 2, 2010

Since my original post I've downloaded the gem's source code and tried to fix the problem.

rails/open_id_authentication plugin has been massively updated over the months, without any updates to this gem. At the moment, in my source code, the problem is that in the User.save method I call the class controller's authenticate with open id but never receive the callback with the result.

If I use the rails plugin directly everything works fine and I receive the user's information in the registration hash.

@sent-hil
Copy link

sent-hil commented Feb 2, 2010

After trying to make it work for an hour, I found a old version of plugin and cloned it. It works fine now. Guess that will have to do till Ben updates this gem.

@DBA
Copy link
Author

DBA commented Feb 2, 2010

The version it's ment to work with can be found in the gem's test/lib directory, if that's what you're looking for.

I've managed to get past the no callback issue. Apparently, this line was preventing the OpenID callback from happening:
options[:return_to] = session_class.controller.url_for(:for_model => "1",:controller=>"users",:action=>"create")

Still wondering what's that :for_model => "1"

@abelta
Copy link

abelta commented Feb 17, 2010

I would like to know if this problem will be fixed soon or if there's a way to set up my rails application so that it can be easily configured in the environment?

@giggo
Copy link

giggo commented Mar 2, 2010

Will this be fixed in authlogic-oid or in open_id_authentication?

@glebm
Copy link

glebm commented Mar 5, 2010

Any news on when it's gonna be fixed? We hacked around it by mixing the new and the old version of the open_id_authentication, but that should not go onto production

@mreinsch
Copy link

I resolved that issue with mreinsch/authlogic_openid@9b802c3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants