6
Authenticating in Flask
Authentication is an important part of any application, be it web-based, desktop, or mobile. Each kind of application has certain best practices when it comes to handling user authentication. In web-based applications, especially Software-as-a-Service (SaaS) applications, this process is of utmost importance, as it acts as the thin red line between the application being secure and insecure.
To keep things simple and flexible, Flask, by default, does not provide any mechanism for authentication. It always has to be implemented by us, the developers, as per our requirements and the application’s requirements.
Authenticating users for your application can be done in multiple ways. It can be a simple session-based implementation ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access