I use the webapp2 Auth module,
http://webapp-improved.appspot.com/api/webapp2_extras/auth.htmlcombined with the User Model,
http://webapp-improved.appspot.com/api/webapp2_extras/appengine/auth/models.htmlto handle authentication.
I'm also using the Session module,
http://webapp-improved.appspot.com/api/webapp2_extras/sessions.html,
to store user-related data in a secure cookie.
So when a request arrives, I can call the Auth method
get_user_by_session() and the user model and related
session data is available to my handler. This works pretty well out of the box and has saved me the time of developing
my own system (which i think isn't easy to do well/securely). I considered the GAE built-in Users api, but decided
against it because I need my own accounts for certain user types.
So that's where I am today. I built my protorpc handlers to authenticate based on passing user ids as a field in the message
but I'd rather implement a unified approach that relies on cookies and hopefully allows me to leverage the webapp2 auth stuff.
Most of my protorpc directed requests come from my Firefox plugin as XMLHttpRequests. I can't use GAE Endpoints because
it requires loading a set of javascript files that won't work in the mozilla extension environment.
Thanks for considering the issue. David