Rails、OpenID 和 Authlogic

发布于 2024-08-18 20:11:13 字数 1624 浏览 8 评论 0 原文

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

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

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:incredentials=' authlogic (2.1.2) lib/authlogic/session/foundation.rb:28:in 初始化' authlogic (2.1.2) lib/authlogic/session/password.rb:140:in初始化' authlogic (2.1.2) lib/authlogic/session/activation.rb:48:in 初始化' authlogic (2.1.2) lib/authlogic/session/klass.rb:61:in初始化' authlogic (2.1.2) lib/authlogic/session/scopes.rb:79:in 初始化' app/controllers/user_sessions_controller.rb:10:in新' app/controllers/user_sessions_controller.rb:10:in `create'

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

我已经尝试过 binary 的示例应用程序,它工作得很好(rails 2.1.2),我尝试了Ryan Bates提供的代码并且它也运行良好(rails 2.3.2)。因此,这些库正在使用以前版本的 Rails。

有什么线索吗?

I've been following ryan baytes screencast #170 and adding ruby-openid, authlogic and authlogic-oid to an existing authlogic authentication system.

However, I keep getting the following stack of errors:

NameError (uninitialized constant 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:in `create'

Is there anyone who's facing the same kind of problem? I'm using rails 2.3.4

I've tried binary's example app which is working perfectly well (rails 2.1.2), I've tried the code provided by Ryan Bates and it is working well too (rails 2.3.2). So, the libraries are working with previous versions of rails.

Any clues?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

庆幸我还是我 2024-08-25 20:11:13

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

你必须等到有人修复 authlogic_openid gem (问题)

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).

Youl'll have to wait until someone fix the authlogic_openid gem (the issue)

拍不死你 2024-08-25 20:11:13

我发现了这个:

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

但我不知道如何应用此代码(我应该放置它吗?)以便它修复 authlogic_oid 问题。

任何人都可以检查一下并了解如何应用它吗?

谢谢。

I have found this:

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

But I don't know how to apply this code ( were to I put it ? ) so that it fixes the authlogic_oid problem.

Can anyone check it out and see how to apply it?

Thanks.

万劫不复 2024-08-25 20:11:13

看看这个:

http://testingauth.heroku.com/

使用 openid 和 jquery 选择器进行 Authlogic 设置。

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

Check this out:

http://testingauth.heroku.com/

Authlogic setup with openid and jquery selector.

Source:
http://github.com/shripadk/authlogic_openid_selector_example

‘画卷フ 2024-08-25 20:11:13

简而言之...不,

我猜有太多依赖库,并且调试问题需要一些时间,因此我们转向使用伪装,使应用程序本身成为 openid 提供者。

Briefly... no

i guess there are too many dependent libraries and debugging the problem took a bit of time, so we shifted to using masquerade, making the app itself an openid provider.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文