// you’re reading...

Uncategorized

Full Contact Search Code — Lessons in Google Authentication

Here’s the main code file for my Full Contact Search Application:
fullcontactsearch_code

I’m releasing it under the Apache license. Some of it is originally inspired from Google tutorials anyway. The portion of the code you may find useful is the self.GetAuthentication method. Basically, what you need to be able to do to permanently authenticate a user is:

  1. Get the user to sign in to a Google account.
  2. Get the user to approve your Web site for access to a url scope (in my case, the Google Contacts feed)
  3. Upgrade the single use token that Google returns to a session token.
  4. Store that token in a database (in Google App Engine’s case, just use the built-in datastore).

Then, next time a user visits the Web site, just look up the session key from your database and you’re good to go.

Discussion

One comment for “Full Contact Search Code — Lessons in Google Authentication”

  1. [...] I’ve posted the source code with some notes. Based on my experience, I think some of Google App Engine’s tutorials need [...]

    Posted by Full Contact Search: Search all the fields of your Gmail contacts | Ryan Pfister | October 9, 2008, 2:20 pm

Post a comment

By Category

By Month

By Tag

Entries (RSS) RSS Feed