Metadata-Version: 2.1
Name: m-abac
Version: 1.0.10
Summary: Thư viện xử lý kiểm tra quyền theo logic ABAC (Attribute-based access control)
Home-page: https://github.com/mobiovn
Author: MOBIO
Author-email: contact@mobio.vn
License: MIT
Project-URL: Source, https://github.com/mobiovn
Keywords: mobio,mobio-engine,m-abac
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: marshmallow
Requires-Dist: marshmallow-oneofschema
Requires-Dist: ipaddress
Requires-Dist: objectpath
Requires-Dist: redis
Requires-Dist: m-caching
Requires-Dist: user-agents
Requires-Dist: Flask
Requires-Dist: m-kafka-sdk-v2
Requires-Dist: python-dateutil

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


### Cài đặt:
```bash
 $ pip3 install m-abac
 ```

### Sử dụng:

##### Kiểm tra user có quyền thao tác hay không:
   ```python
    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
