Skip to main content

Simple user authorization to use alongside with Flask-Login

Project description


Downloads Downloads Downloads

Simple user authorization to use alongside with Flask-Login.


pip3 install Flask-Authorization


from flask_Authorization import Authorize
authorize = Authorize()

# Initialize Extension

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 @flask_authorization.permission_required(permission) decorator.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flask-authorization-1.6.tar.gz (2.7 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page