Skip to content

Commit 62f09a7

Browse files
committed
Environment setup for google_oauth #5
1 parent 1058cf0 commit 62f09a7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

config/initializers/google_oauth.rb

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Rails.application.config.middleware.use OmniAuth::Builder do
2+
provider :google_oauth2, ENV['GOOGLE_ID'], ENV['GOOGLE_KEY'],
3+
{
4+
name: "google",
5+
scope: "userinfo.profile,userinfo.email,drive,https://spreadsheets.google.com/feeds",
6+
prompt: "consent",
7+
access_type: "offline",
8+
}
9+
end

0 commit comments

Comments
 (0)