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