Skip to content

Instantly share code, notes, and snippets.

@revathskumar
Last active December 20, 2015 03:09
Show Gist options
  • Save revathskumar/6061465 to your computer and use it in GitHub Desktop.
Save revathskumar/6061465 to your computer and use it in GitHub Desktop.
Rails.application.config.middleware.use OmniAuth::Builder do
configure do |config|
config.path_prefix = "/aircel/auth"
config.full_host = "http://localhost:3000/"
end
provider :developer unless Rails.env.production?
provider :google_oauth2, CONFIG['google_credentials']['client_id'], CONFIG['google_credentials']['client_secret']
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment