Rails,OpenID和Authlogic

问题描述 投票:10回答:4

我一直关注ryan baytes screencast #170,并将ruby-openidauthlogicauthlogic-oid添加到现有的身份验证系统中。

但是,我不断收到以下错误堆栈:

NameError(未初始化的常量OpenIdAuthentication :: InvalidOpenId):/Library/Ruby/Gems/1.8/gems/authlogic-oid-1.0.4/lib/authlogic_openid/session.rb:53:inopenid_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:ininitialize' authlogic (2.1.2) lib/authlogic/session/password.rb:140:ininitialize'authlogic(2.1.2)lib / authlogic / session / activation.rb:48:ininitialize' authlogic (2.1.2) lib/authlogic/session/klass.rb:61:ininitialize'authlogic(2.1.2)lib / authlogic / session / scopes.rb:79:ininitialize' app/controllers/user_sessions_controller.rb:10:innew'app / controllers / user_sessions_controller.rb:10:in'create'

有人面临同样的问题吗?我正在使用Rails 2.3.4

我尝试过binary's example app,它运行良好(导轨2.1.2),我尝试过the code provided by Ryan Bates,它也运行良好(导轨2.3.2)。因此,这些库正在使用Rails的早期版本。

任何线索?

ruby-on-rails authentication authlogic authlogic-oid railscasts
4个回答
4
投票

rails / open_id_authentication插件已在几天前更新,它破坏了与authlogic_openid gem(v = 1.0.4)的兼容性。

您将不得不等到有人修复authlogic_openid gem(问题)


0
投票

我发现了这个:

http://futureadapter.com/2009/11/13/authlogic-plugin-errorfix/

但是我不知道如何应用此代码(我放了吗?)来解决authlogic_oid问题。

任何人都可以签出并查看如何应用吗?

谢谢。


0
投票

检查此:

http://testingauth.heroku.com/

带有openid和jquery选择器的Authlogic设置。

来源:http://github.com/shripadk/authlogic_openid_selector_example


-1
投票

简短...不

我猜有太多依赖库,调试问题花了一些时间,所以我们转向使用假面舞会,使应用程序本身成为openid提供程序。

© www.soinside.com 2019 - 2024. All rights reserved.