Google App Engine for private use?

Is it possible to create a webapp in Google App Engine, access to which only one user can get? I am thinking of a simple task management application for private use.

Yes, I have already covered this in GAE docs, but I donโ€™t understand what their domain-based authentication system means.

+6
google-app-engine
source share
3 answers

Of course. Just do

if(user.email() == myemail) 

after creating the User object.

+4
source share

If by โ€œsingle userโ€ you mean that only you will ever use the application, the easiest option is to configure the application for authentication for you. In python, this will be done using the app.yaml file, as shown here . This way you can block multiple URLs at once. Using the admin option would be appropriate if you were allowed access, and the โ€œrequiredโ€ option would work if you want others to be able to log in as well.

An example of what the Yaml wanted:

 handlers: - url: /profile/.* script: user_profile.py login: required - url: /admin/.* script: admin.py login: admin - url: /.* script: welcome.py 
+15
source share

"domain-based authentication", after setting up the Web application, it asks the user for a username and password. Without proper credentials, he does not gain access.

So, this answers your question in the positive.

+3
source share

All Articles