Skip to content

Commit

Permalink
Environment setup for google_oauth #5
Browse files Browse the repository at this point in the history
  • Loading branch information
Pbasnal committed Jul 1, 2014
1 parent 1058cf0 commit 62f09a7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/initializers/google_oauth.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 62f09a7

Please sign in to comment.