Skip to content

Instantly share code, notes, and snippets.

Avatar

Frankie Fu Fansion

View GitHub Profile
@scturtle
scturtle / app.py
Created Apr 14, 2013
Flask login with google+ oauth
View app.py
from flask import Flask, request, session, redirect, url_for
import urllib
import requests
app = Flask(__name__)
app.secret_key = 'iwonttellyou'
redirect_uri = 'http://localhost:5000/callback'
client_id = '' # get from https://code.google.com/apis/console
client_secret = ''