Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/f/l/flask-rauth-HEAD/example/facebook.py   flask-rauth(Download)
from flask import Flask, redirect, url_for, session, request, Response
from flask.ext.rauth import RauthOAuth2
 
app = Flask(__name__)
app.config.update(
#   the Rauth service, like this:
facebook = RauthOAuth2(
    name='facebook',
    base_url='https://graph.facebook.com/',
    access_token_url='https://graph.facebook.com/oauth/access_token',

src/f/l/flask-rauth-HEAD/example/google.py   flask-rauth(Download)
from flask import Flask, redirect, url_for, session, Response
from flask.ext.rauth import RauthOAuth2
 
app = Flask(__name__)
# you can specify the consumer key and consumer secret in the application,
 
google = RauthOAuth2(
    name='google',
    base_url='https://www.googleapis.com/oauth2/v1/',
    access_token_url='https://accounts.google.com/o/oauth2/token',