Created
November 3, 2018 11:12
-
-
Save drKreso/a2664ebeafc55e1e5af7293e670d26a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/initializers/oauth.rb | |
Rails.application.config.middleware.use OmniAuth::Builder do | |
provider :facebook, | |
ENV['FACEBOOK_APP_ID'], | |
ENV['FACEBOOK_SECRET_ID'], | |
scope: 'email', | |
info_fields: 'email', | |
auth_type: 'rerequest' | |
configure do |config| | |
config.path_prefix = '/users/auth' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment