3 ms·
I used flask_oauth: https://pythonhosted.org/Flask-OAuth/ https://pythonhosted.org/Flask-OAuth/ You can take a look at how it's used in this file: https://githu
by bjourne 12y ago
I used flask_oauth: https://pythonhosted.org/Flask-OAuth/ https://pythonhosted.org/Flask-OAuth/ You can take a look at how it's used in this file: https://github.com/bjourne/vvm/blob/master/app/users/views.py https://github.com/bjourne/vvm/blob/master/app/users/views.p... Personally, I wouldn't want to use Flask-Social or anything like that because it feels like putting on a straitjacket. You have to follow someone else's conventions and idiosyncrasies and setting up oauth the way you want it is easy (~100 lines max) so it doesn't buy you anything anyway.
- rahimnathwani 12y agoThanks. This code sample will be useful for me to study. It follows the structure I am using (a separate 'users' package which creates a users Blueprint) but hand-rolls the stuff I was trying to do with flask-social, whilst still leveraging flask-login.