I have an app which amounts to a Python script, running on the user's phone, and a JS client, running in the user's browser. The Python script sends messages to App Engine as HTTP requests. The server then pushes the messages to the JS client.
The problem is authentication: The server can easily use Google Accounts to authenticate anything coming from the JS client as being sent by a particular user, but I do not know how to get the Python script to make HTTP requests which will also authenticate.
Any ideas?
Can you use OAUth to authenticate with Google, then use the OAuth token to ensure the messages are legitimate?
Need to send a HTTP request in Python that'll authenticate with Google Accounts