This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from authomatic import Authomatic | |
authomatic = Authomatic(app.config['AUTHOMATIC'], app.config['SECRET_KEY'], report_errors=False) | |
@user.route('/login/<provider_name>/', methods=['GET', 'POST']) | |
def login_social(provider_name): | |
""" | |
Login handler, must accept both GET and POST to be able to use OpenID. | |
From the example at http://peterhudec.github.io/authomatic/examples/flask-simple.html | |
""" | |
NewerOlder