Simple user authorization to use alongside with Flask-Login
Simple user authorization to use alongside with Flask-Login.
pip3 install Flask-Authorization
from flask_Authorization import Authorize authorize = Authorize() # Initialize Extension authorize.init_app(app)
For Flask-Authorization to work properly, your user models needs to implement a function called
get_permissions() that returns a list of permissions. You can define any permissions you like, but
"ROOT", "ADMIN", "USER" are recommended.
Flask-Authorization will check if the current user has the required permissions on routes decorated with the
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for flask_authorization-1.6-py3-none-any.whl