Skip to content

Instantly share code, notes, and snippets.

Verifying my Blockstack ID is secured with the address 13HoQrHXTZCg2oBWDk5V4o4ZdJkAcEUuoY https://explorer.blockstack.org/address/13HoQrHXTZCg2oBWDk5V4o4ZdJkAcEUuoY

Keybase proof

I hereby claim:

  • I am awans on github.
  • I am awans (https://keybase.io/awans) on keybase.
  • I have a public key whose fingerprint is AC0F CC2A E234 76C1 15B9 6B48 20D5 F05F 6330 8E3A

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am awans on github.
  • I am awans (https://keybase.io/awans) on keybase.
  • I have a public key whose fingerprint is 2ADB 30F6 86E7 FBEF 95A1 B603 8DC9 55DE 1A77 3824

To claim this, I am signing this object:

@awans
awans / oauth2-is-pretty-good.py
Created January 30, 2011 21:03
Complete implementation of OAuth2 (the hard version) in about 10 lines of code
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
from google.appengine.api import urlfetch
from django.utils import simplejson as json
import urllib
OAUTH_CLIENT_ID = "1027534278801.apps.googleusercontent.com"
OAUTH_CLIENT_SECRET = "X0ezwreyuXIzNx9vDUkUYmDZ"
class MainHandler(webapp.RequestHandler):