Django Register with Oauth – Disclaimer and Overview

UPDATE… links to all articles…

Facebook –
Twitter –
Google –
Yahoo! –
Microsoft –

First, a couple notes before we begin…

These examples are for server-side implementations, not client-side JavaScript. I’m also going to assume you have some Python / Django experience and will leave it up to you as to how you ultimately structure your code. I’ll also warn that there are probably better ways to do some of this (this is only week 2 of Python for me), but these get the job done so they’ll do for now. I reserve the right to ridicule my own code at some future date.

The flow for each provider is basically the same:

  • Create the URL to redirect to the provider (sometimes this includes fetching a request token)
  • Redirect the user to the provider’s site for approval
  • Handle the response (approved or denied)
  • If the user approved, get an access token
  • Get the user’s profile

Let’s look at Facebook first…

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s