Skip to main content

ABAC Engine

Thư viện xử lý kiểm tra quyền theo logic ABAC (Attribute-based access control).

Cài đặt:

 $ pip3 install m-abac

Sử dụng:

Kiểm tra user có quyền thao tác hay không:
 from mobio.libs.abac import PolicyDecisionPoint
 resource = "deal"
 # action = "UpdateFromSale"
 action = "ListFromSale"

 pdb = PolicyDecisionPoint(resource=resource, action=action)
 result = pdb.is_allowed()
 if not result.get_allow_access():
     # trả về lỗi không có quyền truy cập 

Log - 1.0.0

- release sdk

Log - 1.0.2

- update sdk

Log - 1.0.3

- update cache

Log - 1.0.4

- update cache

Log - 1.0.5

- mm-dd operator
- update if exists

Log - 1.0.6

- update operator exists

Log - 1.0.7

- format date string using parse, string ignore case, accept check value None

Log - 1.0.11

- update abac check sub resource Product Holding

Metadata

Release files for m-abac 1.0.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for m-abac 1.0.15
File Size Uploaded Provenance
m_abac-1.0.15.tar.gz 33.2 kB Without provenance Details

Release files / m_abac-1.0.15.tar.gz

Download URL m_abac-1.0.15.tar.gz
Size 33.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b46bfb4bcb68a0811e1017be35b5f6e6e1f9ed1d1435f55e5ebcffaae97abdf8
BLAKE2b-256 checksum
How to use checksums
87fab3a91a9f8cb099ea74e4c9dd258985db52544ad75812dc6503c33a2fad76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.7

Security for m-abac 1.0.15

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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