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开发者_StackOverflow社区, I've already looked this up on the GAE docs, but I don't really understand what their domain based authentication system means.
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
Of course. Just do
if(user.email() == myemail)
once the User object has been created.
"domain based authentication," once set up, causes the Web app to ask the user for a name and password. Without the proper credentials, he doesn't get access.
So this answers your question, and in the positive.
精彩评论