This rails app is intended to running out of the box. It is based on ruby-openid examples/rails_openid w/ some arrangement.
-
Rails 2.1.1
-
mongrel
-
sqlite3 and sqlite3-ruby
$ git clone git://github.com/kakutani/openid_fake_server.git $ cd open_id_fake_server $ rake openid:server:start
openid_fake_server runs in background. access localhost:3333 via browser.
$ cd open_id_fake_server $ rake openid:server:stop
$ cd open_id_fake_server $ rake openid:server:restart
see details: #{RAILS_ROOT}/config/application.yml
-
import rails-openid release source tree to $HOME/git/rails-openid and tag it. openidenabled.com/ruby-openid/
-
move to openid_fake_server dir.
-
rm -rf *
-
git checkout <commit> examples
-
mv examples/rails_openid/* .
-
mv examples/discover script/
-
mv README README.orig
-
rm -rf examples/rails_openid
-
git rm -r –cached examples
-
git add . (and git rm appropriately)
-
commit it and tag ig. ‘copied from ruby-openid 2.x.x’