Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Flask blueprint that provides all the user handling features that are required by a web application in a database-independent way, including user registration, login, session management, password reset functionality with JWTs, automatic password hashing with Argon2 and of course the all the required route implementations with the corresponding HTML templates (styled using BlueprintJS).
Lightweight Flask blueprint that provides all the user handling features that are required by a web application in a database-independent way, including:
The blueprint provides the following routes for a web application: /login
, /logout
, /register
, /request_password_reset
, /reset/<token>
and /verify/<token>
. All these routes interact with the user database through an instance of the UserHandler
class that is a decorator-based database interface, similar in style to Flask-Login
's LoginManager
. All the blueprint routes are backed by ready-to-use HTML templates that are formatted using BlueprintJS.
The project is available on PyPI as user-blueprint
, you can install it with pip install user-blueprint
.
The blueprint requires the following components to be configured:
blueprint.user_handler
: See the documentation of the UserHandler
class for the details.LoginManager
: This Flask-Login
component handles the session management of the Flask application. You need to create an instance of this class and configure it according to the documentation of Flask-Login
.A working demo Flask application showing all the required configuration is included in the library, see demo.py
.
The library requires the following dependencies to be installed besides Flask
itself.
Flask-Login
: User session management.Flask-WTF
: WTForms
integration for Flask
.Passlib
: Password hashing and verification.PyJWT
: JSON Web Token implementation in Python.Argon2_cffi
: The preferred Argon2 backend for Passlib
. See Passlib
's documentation for more options.The library is open-sourced under the conditions of the MIT license.
Miguel Grinberg's Flask Mega-Tutorial
FAQs
Flask blueprint that provides all the user handling features that are required by a web application in a database-independent way, including user registration, login, session management, password reset functionality with JWTs, automatic password hashing with Argon2 and of course the all the required route implementations with the corresponding HTML templates (styled using BlueprintJS).
We found that user-blueprint demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.