Role-based access control with attributes for Django
Project description
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):
- Clone the repository:
git clone https://github.com/MickaelCormier/django-rbaca
- Navigate to the project directory:
cd django-rbaca
- 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}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ac3c635db6400e407a7147fdf1740d9746213770a70432ae4d77437f4a643dc
|
|
| MD5 |
e7837fcff32959e4cdc5fbbe646710db
|
|
| BLAKE2b-256 |
53043393e71ebd3074f574ed9c6c7f6a87699c98552f58c753a11ae88a340e15
|
Provenance
The following attestation bundles were made for django_rbaca-1.1.0.tar.gz:
Publisher:
main.yml on MickaelCormier/django-rbaca
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_rbaca-1.1.0.tar.gz -
Subject digest:
3ac3c635db6400e407a7147fdf1740d9746213770a70432ae4d77437f4a643dc - Sigstore transparency entry: 155971941
- Sigstore integration time:
-
Permalink:
MickaelCormier/django-rbaca@e03dfa8db765e24a3ac44b5a668faf511f5b8be8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/MickaelCormier
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@e03dfa8db765e24a3ac44b5a668faf511f5b8be8 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0f472c92d2521986d2e6e8f718d7edbcb8b41809e426b8463597e830cb55e2b
|
|
| MD5 |
8c58e54b6b4cb2bd8bdce0c75ace2aa9
|
|
| BLAKE2b-256 |
e99764453e161ac5591b590f6683141ffbad30a70674610447bcb845ef0cf7eb
|
Provenance
The following attestation bundles were made for django_rbaca-1.1.0-py3-none-any.whl:
Publisher:
main.yml on MickaelCormier/django-rbaca
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_rbaca-1.1.0-py3-none-any.whl -
Subject digest:
e0f472c92d2521986d2e6e8f718d7edbcb8b41809e426b8463597e830cb55e2b - Sigstore transparency entry: 155971946
- Sigstore integration time:
-
Permalink:
MickaelCormier/django-rbaca@e03dfa8db765e24a3ac44b5a668faf511f5b8be8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/MickaelCormier
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@e03dfa8db765e24a3ac44b5a668faf511f5b8be8 -
Trigger Event:
push
-
Statement type: