├── .github ├── semantic.yml └── workflows │ └── release.yml ├── .gitignore ├── .releaserc.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── dauthz ├── __init__.py ├── adapters │ └── __init__.py ├── apps.py ├── backends │ ├── __init__.py │ └── casbin_backend.py ├── core.py ├── dauthz-model.conf ├── decorators │ ├── __init__.py │ ├── _enforcer_decorator.py │ └── _request_decorator.py ├── management │ ├── __init__.py │ └── commands │ │ ├── __init__.py │ │ ├── group.py │ │ ├── policy.py │ │ ├── role.py │ │ └── utils.py ├── middlewares │ ├── __init__.py │ ├── enforcer_middleware.py │ └── request_middleware.py ├── migrations │ └── __init__.py ├── settings.py └── utils.py ├── manage.py ├── package.json ├── pyproject.toml ├── requirements.txt ├── requirements_dev.txt └── tests ├── __init__.py ├── dauthz-model.conf ├── dauthz-model.csv ├── settings.py ├── test_backend.py ├── test_basic.py ├── test_command.py ├── test_decorator.py ├── test_middleware.py └── utils.py /.github/semantic.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/.github/semantic.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/.gitignore -------------------------------------------------------------------------------- /.releaserc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/.releaserc.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/README.md -------------------------------------------------------------------------------- /dauthz/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dauthz/adapters/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dauthz/apps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/dauthz/apps.py -------------------------------------------------------------------------------- /dauthz/backends/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/dauthz/backends/__init__.py -------------------------------------------------------------------------------- /dauthz/backends/casbin_backend.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/dauthz/backends/casbin_backend.py -------------------------------------------------------------------------------- /dauthz/core.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/dauthz/core.py -------------------------------------------------------------------------------- /dauthz/dauthz-model.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/dauthz/dauthz-model.conf -------------------------------------------------------------------------------- /dauthz/decorators/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/dauthz/decorators/__init__.py -------------------------------------------------------------------------------- /dauthz/decorators/_enforcer_decorator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/dauthz/decorators/_enforcer_decorator.py -------------------------------------------------------------------------------- /dauthz/decorators/_request_decorator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/dauthz/decorators/_request_decorator.py -------------------------------------------------------------------------------- /dauthz/management/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dauthz/management/commands/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dauthz/management/commands/group.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/dauthz/management/commands/group.py -------------------------------------------------------------------------------- /dauthz/management/commands/policy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/dauthz/management/commands/policy.py -------------------------------------------------------------------------------- /dauthz/management/commands/role.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/dauthz/management/commands/role.py -------------------------------------------------------------------------------- /dauthz/management/commands/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/dauthz/management/commands/utils.py -------------------------------------------------------------------------------- /dauthz/middlewares/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/dauthz/middlewares/__init__.py -------------------------------------------------------------------------------- /dauthz/middlewares/enforcer_middleware.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/dauthz/middlewares/enforcer_middleware.py -------------------------------------------------------------------------------- /dauthz/middlewares/request_middleware.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/dauthz/middlewares/request_middleware.py -------------------------------------------------------------------------------- /dauthz/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dauthz/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/dauthz/settings.py -------------------------------------------------------------------------------- /dauthz/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/dauthz/utils.py -------------------------------------------------------------------------------- /manage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/manage.py -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/package.json -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | casbin>=1.17.0 2 | Django>=3.0.0 -------------------------------------------------------------------------------- /requirements_dev.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/requirements_dev.txt -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/dauthz-model.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/tests/dauthz-model.conf -------------------------------------------------------------------------------- /tests/dauthz-model.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/tests/dauthz-model.csv -------------------------------------------------------------------------------- /tests/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/tests/settings.py -------------------------------------------------------------------------------- /tests/test_backend.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/tests/test_backend.py -------------------------------------------------------------------------------- /tests/test_basic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/tests/test_basic.py -------------------------------------------------------------------------------- /tests/test_command.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/tests/test_command.py -------------------------------------------------------------------------------- /tests/test_decorator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/tests/test_decorator.py -------------------------------------------------------------------------------- /tests/test_middleware.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/tests/test_middleware.py -------------------------------------------------------------------------------- /tests/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pycasbin/django-authorization/HEAD/tests/utils.py --------------------------------------------------------------------------------