Skip to content

Instantly share code, notes, and snippets.

@jasonm23
Forked from k2052/gist:580920
Created April 28, 2012 08:59
Show Gist options
  • Save jasonm23/2517313 to your computer and use it in GitHub Desktop.
Save jasonm23/2517313 to your computer and use it in GitHub Desktop.
##
# Authentication Plugin via omniauth on Padrino
# prereqs:
# http://github.com/intridea/omniauth/
# http://github.com/achiu/omniauth/ working fork
#
module OmniAuthInitializer
def self.registered(app)
require 'omniauth'
app.use OmniAuth::Builder do
provider :password
# provider :twitter, 'consumer_key', 'consumer_secret'
# provider :facebook, 'app_id', 'app_secret'
# provider :campfire
# provider :basecamp
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment