From cc6910b0e1533efe4401d49a2bd07094173f828b Mon Sep 17 00:00:00 2001 From: Sidharth Bansal Date: Sat, 30 Jun 2018 01:39:25 +0530 Subject: [PATCH] Twitter Provider Initializer changes (#2948) --- config/initializers/omniauth.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb index 5a698c069b..5c012fdb86 100644 --- a/config/initializers/omniauth.rb +++ b/config/initializers/omniauth.rb @@ -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