{"id":14065397,"url":"https://github.com/mkrd/Flask-Authorization","last_synced_at":"2025-07-29T20:32:32.693Z","repository":{"id":57140494,"uuid":"224788462","full_name":"mkrd/Flask-Authorization","owner":"mkrd","description":"Simple user authorization to use alongside with Flask-Login","archived":false,"fork":false,"pushed_at":"2023-05-01T23:41:30.000Z","size":68,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-25T09:21:02.996Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkrd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-29T06:12:10.000Z","updated_at":"2024-09-07T20:25:09.000Z","dependencies_parsed_at":"2024-05-28T00:30:11.248Z","dependency_job_id":"25ce5b2b-524d-4e8e-a8df-906afeccd46a","html_url":"https://github.com/mkrd/Flask-Authorization","commit_stats":{"total_commits":17,"total_committers":3,"mean_commits":5.666666666666667,"dds":0.2941176470588235,"last_synced_commit":"6deb30bb2861d63f427587409af7f202c7d4ffa7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkrd%2FFlask-Authorization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkrd%2FFlask-Authorization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkrd%2FFlask-Authorization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkrd%2FFlask-Authorization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkrd","download_url":"https://codeload.github.com/mkrd/Flask-Authorization/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228046145,"owners_count":17861101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-13T07:04:28.324Z","updated_at":"2024-12-04T04:31:06.023Z","avatar_url":"https://github.com/mkrd.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Flask-Authorization\n\n[![Downloads](https://pepy.tech/badge/flask-authorization)](https://pepy.tech/project/flask-authorization)\n[![Downloads](https://pepy.tech/badge/flask-authorization/month)](https://pepy.tech/project/flask-authorization)\n[![Downloads](https://pepy.tech/badge/flask-authorization/week)](https://pepy.tech/project/flask-authorization)\n\nSimple user authorization to use alongside with Flask-Login.\n\n## Installation\n```\npip3 install Flask-Authorization\n```\n\n## Usage\n```python\nfrom flask_Authorization import Authorize\nauthorize = Authorize()\n\n# Initialize Extension\nauthorize.init_app(app)\n```\n\nFor 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.\nFlask-Authorization will check if the current user has the required permissions on routes decorated with the `@flask_authorization.permission_required(permission)` decorator.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkrd%2FFlask-Authorization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkrd%2FFlask-Authorization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkrd%2FFlask-Authorization/lists"}