danwrong / ar-openid-store
ar-openid-store
PublicJanRain's OpenID store for ActiveRecord jammed into a gem
8 filesupdated Jun 19, 2026
files5Download
./libJun 19, 2026LICENSEJun 19, 2026NOTICEJun 19, 2026RakefileJun 19, 2026READMEJun 19, 2026README
ar_openid_store
An ActiveRecord-based OpenID store for the ruby-openid gem. This gem itself is based on the active_record_openid_store included in the examples of the ruby-openid gem by JanRail (see NOTICE). I've just packaged it as a gem for convience and use outside of Rails.
To install:
gem install ar_openid_store
To create the tables. Create a migration similar to the following:
require 'ar_openid_store/migration' class AddOpenidTables < ActiveRecord::Migration
def self.up
create_openid_tables
end
def self.down
drop_openid_tables
end
end
To use with merb_openid:
Merb::Config[:merb_openid][:store] = ActiveRecordStore.new