From 126bfae52cc07d6d416fb11c52d1deedb9c38b32 Mon Sep 17 00:00:00 2001 From: edicristofaro Date: Tue, 11 Apr 2017 15:56:46 -0400 Subject: [PATCH] Update oauth.py --- app/oauth.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/oauth.py b/app/oauth.py index 318a7f0..eb9cd93 100644 --- a/app/oauth.py +++ b/app/oauth.py @@ -1,10 +1,15 @@ +""" +Module provides OAuth signin for Twitter, Facebook and Google. Somewhat hacked together as a learning exercise. +""" + from rauth import OAuth1Service, OAuth2Service from flask import flash, current_app, url_for, request, redirect, session, jsonify import json, urllib2 class OAuthSignIn(object): providers = None - + + # Provider Name, ID and Secret are needed here. Pull in from config. def __init__(self, provider_name): self.provider_name = provider_name credentials = current_app.config['OAUTH_CREDENTIALS'][provider_name]