There are many examples floating around on the internet (just Google Flask + authentication and you’ll see a few) which explain how to do the following:
If you actually cut that down to the database-agnostic part, you get this:
use bcrypt to hash/check passwords;
use flask.session to mark the client as logged in.
Everything else? Totally unrelated, especially the HTTPS "problem" (encryption is configured in the web server, not in the WSGI app.)
All those things that you mention in the first sentence are not related to authentication. That's the whole beauty of Flask - you get to get your hands dirty by building things at a basic level. If you require more magic ie. registration emails, consider shifting over to Rails and the excellent Devise gem.
5
u/[deleted] Feb 24 '14
If you actually cut that down to the database-agnostic part, you get this:
use
bcryptto hash/check passwords;use
flask.sessionto mark the client as logged in.Everything else? Totally unrelated, especially the HTTPS "problem" (encryption is configured in the web server, not in the WSGI app.)