Skip to main content

Role-based access control with attributes for Django

Project description


Logo

django-rbaca

Role-based Access Control with Attributes for distributed Django projects.

About The Project

Welcome to Role-Based Access Control with Attributes for distributed Django projects!

This project provides a secure and scalable solution for access control in Django applications. It extends the traditional role-based access control (RBAC) model with attributes to offer finer-grained control over resource access. The implementation is designed to allow decentralized nodes to have access to resources controlled by a central endpoint.

The project offers a Django app for easy integration into existing projects. It includes models for defining roles, attributes, access control policies, as well as an authorization backend for enforcing access control rules. The app also features an API for querying the access control system.

Key Features

  • Role-based access control: Users are assigned roles that define their access to resources.
  • Attribute-based access control: Attributes are assigned to resources and users for finer-grained control over access.
  • Access control API for external nodes: Centralized access control interface for decentralized nodes.
  • Easy integration: The Django app is designed for seamless integration into existing projects.

Installation

Using pip (from PyPI):

pip install django-rbaca

Using poetry (local development):

  1. Clone the repository:
git clone https://github.com/MickaelCormier/django-rbaca
  1. Navigate to the project directory:
cd django-rbaca
  1. Install dependencies:
poetry install

Documentation

For more detailed information, including prerequisites, configuration, and usage examples, please refer to the documentation.

Citation

If you find this project useful in your research, please consider cite:

@misc{django-rbaca,
    title={django-rbaca: Roll-based Access Control with Attributes for distributed Django projects.},
    author={Bruch, Steven and Cormier, Mickael},
    howpublished = {\url{https://github.com/MickaelCormier/django-rbaca/}},
    year={2024}
}

(back to top)

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

django_rbaca-1.1.0.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_rbaca-1.1.0-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

Details for the file django_rbaca-1.1.0.tar.gz.

File metadata

  • Download URL: django_rbaca-1.1.0.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for django_rbaca-1.1.0.tar.gz
Algorithm Hash digest
SHA256 3ac3c635db6400e407a7147fdf1740d9746213770a70432ae4d77437f4a643dc
MD5 e7837fcff32959e4cdc5fbbe646710db
BLAKE2b-256 53043393e71ebd3074f574ed9c6c7f6a87699c98552f58c753a11ae88a340e15

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_rbaca-1.1.0.tar.gz:

Publisher: main.yml on MickaelCormier/django-rbaca

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_rbaca-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: django_rbaca-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for django_rbaca-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0f472c92d2521986d2e6e8f718d7edbcb8b41809e426b8463597e830cb55e2b
MD5 8c58e54b6b4cb2bd8bdce0c75ace2aa9
BLAKE2b-256 e99764453e161ac5591b590f6683141ffbad30a70674610447bcb845ef0cf7eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_rbaca-1.1.0-py3-none-any.whl:

Publisher: main.yml on MickaelCormier/django-rbaca

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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