From 62f09a70f71e88eafa4df5ab02913dfab8510b76 Mon Sep 17 00:00:00 2001 From: basnal Date: Tue, 1 Jul 2014 11:30:30 +0530 Subject: [PATCH] Environment setup for google_oauth #5 --- config/initializers/google_oauth.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 config/initializers/google_oauth.rb diff --git a/config/initializers/google_oauth.rb b/config/initializers/google_oauth.rb new file mode 100644 index 0000000..ae4cf59 --- /dev/null +++ b/config/initializers/google_oauth.rb @@ -0,0 +1,9 @@ +Rails.application.config.middleware.use OmniAuth::Builder do + provider :google_oauth2, ENV['GOOGLE_ID'], ENV['GOOGLE_KEY'], + { + name: "google", + scope: "userinfo.profile,userinfo.email,drive,https://spreadsheets.google.com/feeds", + prompt: "consent", + access_type: "offline", + } +end \ No newline at end of file