Skip to main content

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

Project description

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

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

m_abac_test-1.0.56.tar.gz (33.7 kB view details)

Uploaded Source

File details

Details for the file m_abac_test-1.0.56.tar.gz.

File metadata

  • Download URL: m_abac_test-1.0.56.tar.gz
  • Upload date:
  • Size: 33.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for m_abac_test-1.0.56.tar.gz
Algorithm Hash digest
SHA256 f14e40312376ca63b196846d7848a429df1ecfdfe93b04095ee1c829f476196d
MD5 1fc3b030b95897d4fa3c95e018146753
BLAKE2b-256 2ef8c8cc500fa8abae41da8ffdb686f814183a37cb0409df366208d2e7e56b57

See more details on using hashes here.

Supported by

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