Authlogic OpenID error: uninitialized constant OpenIdAuthentication::InvalidOpenId

后端 未结 5 1211
花落未央
花落未央 2021-02-03 14:07

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:

uninitial         


        
5条回答
  •  不要未来只要你来
    2021-02-03 14:36

    Going through the railscast 170. Troubleshooting lead me here. I tried authlogic_openid fork from last poster (mreinsch). This thankfully corrected openid_identifier error long enough for the regular login system to work, but not openid.

    It's giving me an name error on the save method as identified in the block. This is apparently used to allow openid to get me to login.

    Error Dump:

    NameError in User sessionsController#create
    uninitialized constant Rack::OpenID
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:443:in `load_missing_constant'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const_missing'
    /Sites/authlogic_b/vendor/plugins/authlogic_openid/lib/authlogic_openid/session.rb:72:in `save'
    /Sites/authlogic_b/app/controllers/user_sessions_controller.rb:8:in `create'

提交回复
热议问题