openid-store-mongoid

Author: Larry Price ({larryprice.github.com}[http://larryprice.github.com])
Contact: larry.price.dev@gmail.com
Repository Location: github.com/larryprice/openid-store-mongoid

Description

OpenID Store using Mongoid. Concept originally from Alex Young’s blog.

Usage

You should use require 'openid-store-mongoid' to use this gem.

To create an OpenID consumer:

OpenID::Consumer.new(session, OpenID::Store::MongoidStore.new)

To use with OmniAuth:

use OmniAuth::Builder do
  provider :open_id, :store => OpenID::Store::MongoidStore.new
end

You can cleanup any expired Nonce and Association documents from your database:

OpenID::Store::MongoidStore.cleanup

Contributing to openid-store-mongoid

Copyright © 2013 Larry Price. See LICENSE.txt for further details.