title: OAuth2.0 authentication in Google App Engine
body: <p>I've managed to implement the <a href="http://code.google.com/p/gae-simpleauth/" rel="nofollow">simpleauth</a> package for a basic webapp I've been working on. I now need to send data to this service from a python script running on a Raspberry Pi (the app is a "data logger" for temperature). Before I had implemented the simpleauth package, I could just POST the data and username to the site. Alas, now the response is the login page (to be expected). </p>
  
  <p>If I wanted to connect to this webapp from the command line, I assume I'll need to authenticate myself. However, how would I go about doing this? I assume I'm going to need to programmatically replicate the steps taken by the browser to get a token but <a href="http://pastebin.com/uPYMSKee" rel="nofollow">I think I've tried this</a> and it hasn't worked. I'm not even sure who my token provider is - my webapp, or Google?</p>
  
  <p>Any tips?</p>