Skip to content

Using Multiple Providers

Michael Bleigh edited this page Nov 15, 2010 · 2 revisions

OmniAuth comes with a middleware to easily combine multiple strategies on a single application. It works like so:

    use OmniAuth::Builder do
      provider :twitter, 'CONSUMER_KEY', 'CONSUMER_SECRET'
      provider :open_id, OpenID::Store::Filesystem.new('/tmp')
    end

You may specify a class instead of a symbol to integrate custom strategies.