With Flask-OpenID there's a really nice OpenID module for the Flask framework. However, facebook only supports FBconnect and no real OpenID.
I'm looking for a modified version of Flask-OpenID (if one exists) which supports FBconnect or a library doing FBconnect authentication in a similar way as Flask-OpenID.
Flask-Social persists the connection information and allows you to get a configured instance of an API object with your user's token so you can make API calls on behalf of them. Currently Facebook, Twitter, foursquare and Google are supported out of the box as long as you install the appropriate API library.
FLASK is a core framework in security-focused operating systems such as NSA's Security-Enhanced Linux (SELinux), OpenSolaris FMAC and TrustedBSD.
On Heroku, when it comes to deploying web apps written with Flask, it requires you to download the Heroku CLI and then proceed further. Well, there's another way to do it as well and that is by installing dependencies on the go and deploying the Flask app by connecting the GitHub repository to your Heroku app.
The Flask-OAuth extension supports Facebook authentication:
facebook = oauth.remote_app('facebook', base_url='https://graph.facebook.com/', request_token_url=None, access_token_url='/oauth/access_token', authorize_url='https://www.facebook.com/dialog/oauth', consumer_key=FACEBOOK_APP_ID, consumer_secret=FACEBOOK_APP_SECRET, request_token_params={'scope': 'email'} )
Here's a full Facebook example: https://github.com/mitsuhiko/flask-oauth/blob/master/example/facebook.py
You might also want to checkout Flask-Social as well (which is an extension on top of Flask-Security). I'm in the middle of setting it up myself, but so far no issues. Flask-Security, if you're not familiar, combines Flask-Login, Flask-Principal, and a few other extensions for a quick security layer, and Flask-Social adds the OAuth features.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With