Top-rated recipes tagged "auth"http://code.activestate.com/recipes/tags/auth/top/2010-05-20T20:39:50-07:00ActiveState Code RecipesRoutines for programmatically authenticating with the Google Accounts system at Google App-Engine. (Python)
2010-05-20T20:39:50-07:00Berendhttp://code.activestate.com/recipes/users/4173891/http://code.activestate.com/recipes/577217-routines-for-programmatically-authenticating-with-/
<p style="color: grey">
Python
recipe 577217
by <a href="/recipes/users/4173891/">Berend</a>
(<a href="/recipes/tags/auth/">auth</a>, <a href="/recipes/tags/authentication/">authentication</a>, <a href="/recipes/tags/gae/">gae</a>, <a href="/recipes/tags/google/">google</a>, <a href="/recipes/tags/http/">http</a>, <a href="/recipes/tags/sessions/">sessions</a>).
Revision 2.
</p>
<p>This takes two calls, one to the ClientLogin service of Google Accounts,
and then a second to the login frontend of App Engine.</p>
<p>User credentials are provided to the first, which responds with a token.
Passing that token to the _ah/login GAE endpoint then gives the cookie that can
be used to make further authenticated requests.</p>