Profile

Cover photo
Pedro Belo
Works at Heroku
178 followers|91,556 views
AboutPostsPhotosYouTube

Stream

Pedro Belo

Discussion  - 
 
Hi folks,

I have a Google Drive OAuth app working, and would like to enhance it with a Drive add-on. Is it possible to somehow share the authentication between the two so users don't have to authorize twice?

Related:
http://stackoverflow.com/questions/22827156/how-to-display-external-api-oauth-dialog-for-google-sheets-addon

Thanks!
1
Eric Koleda's profile photoSpencer Easton's profile photo
3 comments
 
+Pedro Belo I used the 0Auth2 library by +Eric Koleda in a forms add-on.  It works well but does require two rounds of authentication.  This specific add-on requests resource calendar read access. 

 If you are calling a google api via REST take a look at the docs to see what the scopes are.  You may be able to call a script service in your code to satisfy the scope .  That would cut down on a second request.


Here is a striped down version of the add-on. You will need to enter your own console credentials. Look for the add-on option to "Request Access to resource calendars"

 https://docs.google.com/forms/d/1OmMYOIUniqUiYQnwFZuthI0bEzk5tFouqrgtuCA7UPc/edit?usp=sharing
Add a comment...
Have him in circles
178 people
Daniel C. Scapin's profile photo
Vinicius Eduardo's profile photo
jubaer ahmed's profile photo
Mega Cursos Online's profile photo
Izabel Delgado's profile photo
Morten Bagai's profile photo
praveen sinha's profile photo
Paulo Fagiani's profile photo
Eduardo Crisspin's profile photo
People
Have him in circles
178 people
Daniel C. Scapin's profile photo
Vinicius Eduardo's profile photo
jubaer ahmed's profile photo
Mega Cursos Online's profile photo
Izabel Delgado's profile photo
Morten Bagai's profile photo
praveen sinha's profile photo
Paulo Fagiani's profile photo
Eduardo Crisspin's profile photo
Basic Information
Gender
Male
Work
Employment
  • Heroku
    Zerg Master, 2009 - present
Links
YouTube