asciinema.org/config/initializers/omniauth.rb

10 lines
471 B
Ruby
Raw Normal View History

Rails.application.config.middleware.use OmniAuth::Builder do
provider :twitter, CFG.twitter_consumer_key, CFG.twitter_consumer_secret, :client_options => { :ssl => { :ca_path => "/etc/ssl/certs" } }
provider :github, CFG.github_consumer_key, CFG.github_consumer_secret, :client_options => { :ssl => { :ca_path => "/etc/ssl/certs" } }
2013-10-19 16:25:30 +00:00
provider :browser_id
end
OmniAuth.config.on_failure = Proc.new { |env|
OmniAuth::FailureEndpoint.new(env).redirect_to_failure
}