我一直关注ryan baytes screencast #170并将ruby-openid,authlogic和authlogic-oid添加到现有的身份验证系统。
但是,我不断收到以下错误:
NameError(未初始化的常量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:in
credentials ='
authlogic(2.1.2)lib / authlogic / session / foundation.rb:28:in initialize'
authlogic (2.1.2) lib/authlogic/session/password.rb:140:in
initialize'
authlogic(2.1.2)lib / authlogic / session / activation.rb:48:in initialize'
authlogic (2.1.2) lib/authlogic/session/klass.rb:61:in
initialize'
authlogic(2.1.2)lib / authlogic / session / scopes.rb:79:in initialize'
app/controllers/user_sessions_controller.rb:10:in
new'
app / controllers / user_sessions_controller.rb:10:在'create'
有没有人面临同样的问题?我正在使用rails 2.3.4
我已经尝试了binary's example app,它运行得很好(rails 2.1.2),我已经尝试了the code provided by ryan bates并且它也运行良好(rails 2.3.2)。因此,这些库正在使用以前版本的rails。
任何线索?
答案 0 :(得分:4)
rails / open_id_authentication插件几天前已经更新,它破坏了与authlogic_openid gem(v = 1.0.4)的兼容性。
你必须等到有人修复authlogic_openid gem(问题)
答案 1 :(得分:0)
我发现了这个:
http://futureadapter.com/2009/11/13/authlogic-plugin-errorfix/
但我不知道如何应用这段代码(我把它放在了吗?),以便修复authlogic_oid问题。
任何人都可以查看并查看如何应用它吗?
感谢。
答案 2 :(得分:0)
检查出来:
http://testingauth.heroku.com/
使用openid和jquery选择器进行Authlogic设置。
来源: http://github.com/shripadk/authlogic_openid_selector_example
答案 3 :(得分:-1)
简单地说......没有
我想有太多的依赖库并且调试问题需要花费一些时间,所以我们转而使用伪装,使app本身成为openid提供者。