Ruby on Rails应用程序的OpenID支持 [英] OpenID support for Ruby on Rails application

查看:58
本文介绍了Ruby on Rails应用程序的OpenID支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Ruby on Rails应用程序中启用OpenID登录的最新技术是什么?这是一个社区Wiki,其中包含有关此问题的最新答案.

What is current state of the art for enabling OpenID login in Ruby on Rails applications? This is a community wiki with up-to-date answers to this question.

最先进的身份验证解决方案似乎是 Authlogic .它使用 Authlogic OpenID插件支持OpenID.它支持Rails 4和3.rails2分支中支持Rails 2.

The most advanced authentication solution seems to be Authlogic. It supports OpenID with Authlogic OpenID plugin. It supports Rails 4 and 3. Rails 2 is supported in the rails2 branch.

您可能想观看带有Authlogic的OpenID" railscast (以及"Authlogic" railscast ).

You may want to watch "OpenID with Authlogic" railscast (and the "Authlogic" railscast).

有一个名为 Authlogic OpenID选择器示例的示例应用程序.

There is a sample application called Authlogic OpenID Selector Example.

Devise是用于Rails的灵活身份验证框架.它支持 devise_openid_authenticatable 的OpenID.

Devise is flexible authentication framework for Rails. It supports OpenID with devise_openid_authenticatable.

另一个可供选择的身份验证库是 restful_authentication Rails插件.似乎您还需要安装 open_id_authentication 插件.

Another authentication library of choice is restful_authentication Rails plugin. Seems like you also need to install open_id_authentication plugin.

您可能要观看(大约在2007年左右)"OpenID身份验证" railscast .

You may want to watch (old, circa 2007) "OpenID Authentication" railscast.

对OpenID协议的原始支持由 Ruby OpenID 库处理.

Raw support for OpenID protocol is handled by Ruby OpenID library.

推荐答案

确切的资源应该是

The definitive resource should be the rails wiki, although I use should advisedly because things have been changing quite fast when it comes to OpenID support.

Ryan Bates的在Openid上进行轨道广播是我发现的最好的选择跟随.即使它是用Rails 1.2.3记录的,我仍然可以成功地按照Rails 2.1.0的说明进行操作.唯一需要注意的是:

Ryan Bates' Railscast on Openid is the best thing I've found to follow. Even though it was recorded with Rails 1.2.3, I've been able to successfully follow the tutorial with Rails 2.1.0. The only point to note is that for:

gem install ruby-openid

我安装了2.1.2,而不是railscast中使用的1.1.4.

I installed 2.1.2, rather than the 1.1.4 used in railscast.

使用的OpenID插件是open_id_authentication,我结合git://github.com/technoweenie/restful-authentication.git的restful_authentication进行了测试

The OpenID plugin used is open_id_authentication, and I tested it in combination with restful_authentication from git://github.com/technoweenie/restful-authentication.git

注意:我后来在博客文章中写下了.

这篇关于Ruby on Rails应用程序的OpenID支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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