Trevor
Trevor

Reputation: 107

What Google app engine Auth to use to only expose my "intranet" site only to my GSuite users?

I am pretty new Google app engine, and though I have hacked around with alot of languages, I am finding the google documentation a little overwhelming. I have successfully launched a static site, and successfully run some python code from the console. But I have not run any python from my static site.

I am a Small company trying to setup a google app engine static/dynamic website that I only want to expose to my Gsuite users.

I have some python code I want to run on my app engine, which will download a file from gdrive/teamdrive, process the file, create a new file from the results and then upload the resulting file to the same folder.

I may also at a later date have this static/dynamic website also interfacing with Cloud SQL(mysql) or an external database.

my Questions

  1. What authentication method to use to only expose this website to my gsuite users?
  2. Though I have worked through some of the GDrive api examples whats the best and easiest method of passing GDrive text files to my python code? (though I have hacked around with python lots in the past, the html and python combination perplexes me)

Thanks!

Upvotes: 1

Views: 194

Answers (1)

Dustin Ingram
Dustin Ingram

Reputation: 21520

You would use OAuth2.0 to acquire a token which you can then use to interact with that user's files through the GDrive API (see "About Authorization" as well as this quickstart Python example).

Upvotes: 1

Related Questions