A lightweight extension & library to security Flask applications quickly and simply.
Flask-Identity allows you to quickly add common security mechanisms to your Flask application. They include:
- Session based authentication
- User and role management
- Password hashing
- Basic HTTP authentication
- Token based authentication
- Login tracking
- JSON/Ajax Support
Currently there are so many security middleware for Flask, most them depends on many extensions/libraries. It's easy to start but hard to configure because some options are defined by the dependencies.
Flask-Identity is a lightweight security extension with all-in-one configurations and less third dependencies, some codes are direct merged from other successful open-source libraries:
Issues and pull requests are welcome. Please consult these contributing guidelines.
Install and update using pip:
pip install -U Flask-Identity