Note There is now a Restful OpenID Authentication plugin for Rails that is recommended for the modern RESTful approach to building Rails applications. This newer plugin is a combination of the restful_authentication plugin from Technoweenie and the open_id_consumer plugin you see below.
Also note, the Restful OpenID Authentication plugin doesn’t work with ruby-openid 2.x. It does work with ruby-openid 1.x, however ruby-openid 1.x doesn’t work with gem 1.x.
EastMedia, in conjunction with VeriSign, developed a Ruby on Rails plugin to allow developers to easily OpenID-enable their Rails applications. The plugin follows Rails conventions, installs in one step, and includes two generators to create the basic stubs for your application.
You can install the plugin into your Rails application using the standard plugin install script (run this from your Rails app’s base directory):
$ ./script/plugin install http://svn.apache.org/repos/asf/incubator/heraldry/libraries/ruby/openid_consumer_plugin/trunk/openid_consumer
If you want to view the source code without installing the plugin, you can find it here:
http://svn.apache.org/repos/asf/incubator/heraldry/libraries/ruby/openid_consumer_plugin/trunk/openid_consumer/
If you would like to run your own OpenID Server, you can install the open source Rails OpenID Server that is also part of the Apache Heraldry project. See Rails OpenID Server.