continuing the question, my guess is that the GitHub - zquestz/omniauth-google-oauth2: Oauth2 strategy for Google can be used to ask
for permissions for a user to access their google drive. However, i’m not sure if this is it’s ‘purpose’, it rather seems like its for allowing a authorizing a user to use ‘your app’. I gather this because it seems to require permissions on G+ and email:
From the Usage:
Usage
Here’s an example for adding the middleware to a Rails app in config/initializers/omniauth.rb:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :google_oauth2, ENV["GOOGLE_CLIENT_ID"], ENV["GOOGLE_CLIENT_SECRET"]
end
You can now access the OmniAuth Google OAuth2 URL: /auth/google_oa
uth2
For more examples please check out examples/omni_auth.rb
NOTE: While developing your application, if you change the scope in the initializer you will need to restart your app server. Remember that ‘email’ and ‘profile’ scopes are required!
is my interpretation correct?
Thanks in advance!