Skip to content

Commit

Permalink
Twitter Provider Initializer changes (#2948)
Browse files Browse the repository at this point in the history
  • Loading branch information
SidharthBansal authored and jywarren committed Jun 29, 2018
1 parent 79a6df6 commit cc6910b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/initializers/omniauth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#the provider is google_oauth2 and the app-key of google developers app is stored in OAUTH_GOOGLE_APP_KEY
#the app-secret of google developers app is stored in variable OAUTH_GOOGLE_APP_SECRET
provider :google_oauth2, ENV["OAUTH_GOOGLE_APP_KEY"],ENV["OAUTH_GOOGLE_APP_SECRET"] , skip_jwt: true
#For provider github, app_id is stored in
#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 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 cc6910b

Please sign in to comment.