¶ ↑
Openid MongoDB StoreOpenID requires some form of storage for its various cryptographic nuts and bolts. This project lets you use MongoDB (through the Mongo Ruby library) for that storage. This was pretty largely taken from the ActiveRecord adaptor.
¶ ↑
Installgem install openid_mongodb_store
db = Mongo::Connection.new(‘localhost’).db(‘testorama’) db.authenticate(‘foo’,‘bar’) OpenidMongodbStore::Store.new(db)
¶ ↑
Demo“‘ git clone git://github.com/samsm/openid_mongodb_store.git cd openid_mongodb_store bundle install # have mongodb running shotgun open localhost:9292/ “`
Shotgun reloads the application each request, providing a nice sanity check. OpenID library can normally do nonce/association storage in memory, so shotgun is a little extra proof that it’s really working.
¶ ↑
CopyrightCopyright © 2009 Sam Schenkman-Moore. See LICENSE for details.