I am writing a small app that uses the GAE. I have parts of my app that are for administrative use only. I have two options using login: admin
option in the app.yaml or google.appengine.api.users.is_current_user_admin()
in python code. The basic authentication is sufficient for my case.
Which solution is better?
The advantage of using app.yaml is that the python code is a bit cleaner. Plus it may be the case that app.yaml may be more efficient, since it can be handled in the server. (In worst case it is equal in terms of performance.) The only drawback is that I do not display a custom page, but I don't care to much for that.
I am unsure if my assertions are correct.