I am using appengine( python) and trying to manage a shared google drive directory for certain user. Can my program always access the drive without to go to authorize page, even when I am login as different user. Say I login 123 but I want to access abc's google drive all the time.
相关问题
- java.lang.NullPointerException at java.io.PrintWri
- How can I force all files in a folder to be owned
- google-drive can't get push notifications
- __call__() missing 1 required positional argument:
- Upload file to Google Cloud Storage using AngularJ
相关文章
- Is there a size limit for HTTP response headers on
- appcfg.py command not found
- Google app engine datastore string encoding proble
- Angular route not working when used with Google Ap
- How can my Google Apps Script be run by others the
- Doctrine not finding data on Google App Engine?
- Using OkHttp client via OKClient on Google App Eng
- Google appEngine: 404 when accessing /_ah/api [dup
You can do this through domain wide delegation for Google Apps users: https://developers.google.com/drive/delegation, though the domain admin will have to add your app for authorization.
If you want to create an app for the marketplace which will prevent the need for a manual setup, you can follow instructions here: https://developers.google.com/google-apps/marketplace/tutorial_python_gae#Integrate-OAuth
I don't think you can access any of Google's API if the user is not logged into your application even if you were previously granted access, at least from my understanding of the authentication methods available.
When the user adds a app engine project service account as a share, you can always access it, without the OAuth2 dance.
Your app engine project service account looks like : example@appspot.gserviceaccount.com You can find information here : https://developers.google.com/drive/service-accounts#google_app_engine_project_service_accounts