Skip to content

Commit

Permalink
Configuration settings for facebook provider (#2959)
Browse files Browse the repository at this point in the history
  • Loading branch information
SidharthBansal authored and jywarren committed Jul 1, 2018
1 parent 0d8477e commit f5fd6ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/initializers/omniauth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
provider :google_oauth2, ENV["OAUTH_GOOGLE_APP_KEY"],ENV["OAUTH_GOOGLE_APP_SECRET"] , skip_jwt: true
#For provider github, app_id is stored in OAUTH_GITHUB_APP_KEY and app_secret in OAUTH_GITHUB_APP_SECRET
provider :github, ENV["OAUTH_GITHUB_APP_KEY"], ENV["OAUTH_GITHUB_APP_SECRET"], { scope: 'user:email' }
#For Facebook provider
provider :facebook, ENV["OAUTH_FACEBOOK_APP_KEY"], ENV["OAUTH_FACEBOOK_APP_SECRET"]
#For provider github, app_id is stored in OAUTH_TWITTER_APP_KEY and app_secret in OAUTH_TWITTER_APP_SECRET
provider :twitter, ENV["OAUTH_TWITTER_APP_KEY"], ENV["OAUTH_TWITTER_APP_SECRET"]
end

0 comments on commit f5fd6ea

Please sign in to comment.