open_id_authentication - " OpenIdAuthentication.store为零。使用内存中存储&QUOT。问题 [英] open_id_authentication - "OpenIdAuthentication.store is nil. Using in-memory store." problem

查看:175
本文介绍了open_id_authentication - " OpenIdAuthentication.store为零。使用内存中存储&QUOT。问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让 open_id_authentication 插件的工作。结果
最初与authlogic这样做,但放弃了,因为感觉更麻烦的帮助。

I am trying to make the open_id_authentication plugin working.
Initially was doing it with authlogic but abandoned because it feels like much more hassle the help.

问题是,我得到 OpenIdAuthentication.store为零。使用内存中存储。警告其美元的正确验证用户p $ pvents在日志中。

The problem is that I am getting OpenIdAuthentication.store is nil. Using in-memory store. warning in the log which prevents from authenticating users correctly.

下面是日志片段:

Processing UserSessionsController#create (for 127.0.0.1 at 2010-04-21 23:58:38) [POST]
  Parameters: {"commit"=>"Sign in", "authenticity_token"=>"MSPc+VMgsQZ/w7vsb2OiE0azsF1QmphZqfnS6cPRD/U=", "openid_identifier"=>"http://myopenid.com"}
Completed in 12ms (View: 1, DB: 0) | 401 Unauthorized [http://localhost/user_session]
Generated checkid_setup request to http://www.myopenid.com/server with assocication {HMAC-SHA1}{4bcf0490}{MN9AXg==}
OpenIdAuthentication.store is nil. Using in-memory store.
Error attempting to use stored discovery information: OpenID::TypeURIMismatch
Attempting discovery to verify endpoint
Performing discovery on http://xxx.myopenid.com/
Using 'check_authentication' with http://www.myopenid.com/server

我真的不知道我有什么,为了解决这个问题做。店里大概设置为数据库(我有OpenID的迁移)。另外不知道如果我真的需要对数据库进行OpenID身份验证。

I am not really sure what I have to do in order to fix this issue. Probably setting the store to database (and I have OpenID migration). Also not sure if I really need the database to perform the OpenID authentication.

原始项目(支)是这里这样你就可以有亲密看

The original project (branch) is here so you can have a close look.

将在该AP preciate良好的建议。

Would appreciate good advices on that.

谢谢,结果
德米特里。

Thanks,
Dmitriy.

推荐答案

我是有最新的open_id插件和内存存储类似的问题。一些OpenID的网站会的工作,但大多数不会。在MemoryStore的东西是如何验证打破。切换到使用文件存储罚款为我工作。

I was having similar problems with the most recent open_id plugin and the memory store. Some OpenID sites would work, but most would not. Something in the MemoryStore is broken on how to authenticate. Switching to using the file store worked fine for me.

我创建了一个名为初始化配置/初始化/ openid.rb 这个里面:

I created a initializer named config/initializers/openid.rb with this inside:

OpenIdAuthentication.store = :file

重新启动应用程序,我想尽OpenID的URL开始工作。

Restarted the app, and every openId URL I tried started working.

为什么文件存储在内存中存储不工作,我不能回答。我只知道,这个固定的我。

Why the File store works when the Memory store doesn't, I can't answer. I just know that this fixed it for me.

这篇关于open_id_authentication - " OpenIdAuthentication.store为零。使用内存中存储&QUOT。问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆