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.1.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.1-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_rbaca-1.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 ab2cab187c3e143a40e873c746b391ad5a49221f5bb888148661469821f2735f
MD5 f3f106b72fab58dc98477665e6c98f84
BLAKE2b-256 f27495452d5594f37e452429eb349b606c6bc2fb1daae56e3aa20e5a55f5d9d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_rbaca-1.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: django_rbaca-1.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fb64f2660898be3271d91d84317c918b266d0c6903caaaab2d9c7ae2f632996f
MD5 6e874c8668e5558d15658cabebb96a2c
BLAKE2b-256 18caa547b29560b8d938a959f6cdd966642a26ec6ae5f87dd4b6485052679e51

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_rbaca-1.1.1-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