Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google App Engine for private usage?

Is it possible to create a webapp on Google App Engine which can only be accessed by a single user? I'm thinking of a simple task management app for private usage.

Yes, I've already looked this up on the GAE docs, but I don't really understand what their domain based authentication system means.

like image 733
python dude Avatar asked Dec 27 '09 23:12

python dude


1 Answers

If by "single user" you mean only you will ever use the app, the simplest option is to configure the application to do the authentication for you. In python this would be done using the app.yaml file, as shown here. This way you can lock down a number of urls all at the same time. Using the admin option would be appropriate if only you were to be allowed access, and the "required" option would work if you wanted others to be able to log in as well.

Sample of what the yaml would like:

handlers:

- url: /profile/.*
  script: user_profile.py
  login: required

- url: /admin/.*
  script: admin.py
  login: admin

- url: /.*
  script: welcome.py
like image 128
Peter Recore Avatar answered Nov 15 '22 08:11

Peter Recore