Skip to main content


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)

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.2.1.tar.gz (19.4 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.2.1-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_rbaca-1.2.1.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for django_rbaca-1.2.1.tar.gz
Algorithm Hash digest
SHA256 7d7f7300e6d2d1edcdaa4752d3dac1b57030067ee0d07e4cd9025e74cd91f77e
MD5 f5c854d9710764209dd0a817a02eb6d2
BLAKE2b-256 a83eac756766556389ffbd64147e150f67ec1b22821aaed53fadf87833347d81

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: django_rbaca-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 25.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for django_rbaca-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c1ba0780a74b482e77d71f7f7aaafa2ff522c721f0445e375b740537574affc3
MD5 3650e4ec86a5443dc57c239cd04e008b
BLAKE2b-256 3f96c741efacb2ab8f92662a45c105d55db59c1733c6c72d6b52e1e0348df16f

See more details on using hashes here.

Provenance

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

Release history Release notifications | RSS feed

1.2.3

2 files

1.2.2

2 files

This release

1.2.1 This release

2 files

1.1.1

2 files

1.1.0

2 files

1.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page