## aiSSEMBLE™ Foundation Policy Decision Point Python Client
[![PyPI](https://img.shields.io/pypi/v/aissemble-foundation-pdp-client-python?logo=python&logoColor=gold)](https://pypi.org/project/aissemble-foundation-pdp-client-python/)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/aissemble-foundation-pdp-client-python?logo=python&logoColor=gold)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/aissemble-foundation-pdp-client-python?logo=python&logoColor=gold)
This module provides a client for authorizing a jwt, action and resource
The following tasks will help you add authentication to your module.
1. Example usage
- Add the following to your code
-
```python
# The url points to your policy decision point base
# For example http://localhost:8080/api/pdp
pdp_client = PDPClient(auth_config.pdp_host_url())
decision = pdp_client.authorize(your_jwt_string, None, 'some-action')
if 'PERMIT' == decision:
print('User is authorized to access XYZ')
else:
raise AissembleSecurityException('User is not authorized')
```
Raw data
{
"_id": null,
"home_page": null,
"name": "aissemble-foundation-pdp-client-python",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": "aiSSEMBLE Baseline Community",
"author_email": "aissemble@bah.com",
"download_url": "https://files.pythonhosted.org/packages/53/0a/252523a28a7d358286c56b12a593c793de76bf28afddd57782c05fdb2e2a/aissemble_foundation_pdp_client_python-1.10.0.tar.gz",
"platform": null,
"description": "## aiSSEMBLE™ Foundation Policy Decision Point Python Client\n\n[![PyPI](https://img.shields.io/pypi/v/aissemble-foundation-pdp-client-python?logo=python&logoColor=gold)](https://pypi.org/project/aissemble-foundation-pdp-client-python/)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/aissemble-foundation-pdp-client-python?logo=python&logoColor=gold)\n![PyPI - Wheel](https://img.shields.io/pypi/wheel/aissemble-foundation-pdp-client-python?logo=python&logoColor=gold)\n\nThis module provides a client for authorizing a jwt, action and resource\n\nThe following tasks will help you add authentication to your module.\n\n1. Example usage\n - Add the following to your code\n - \n ```python \n # The url points to your policy decision point base\n # For example http://localhost:8080/api/pdp\n pdp_client = PDPClient(auth_config.pdp_host_url()) \n decision = pdp_client.authorize(your_jwt_string, None, 'some-action')\n if 'PERMIT' == decision:\n print('User is authorized to access XYZ')\n else:\n raise AissembleSecurityException('User is not authorized')\n ```\n",
"bugtrack_url": null,
"license": null,
"summary": "REST Policy Decision Point (PDP) client for Python-based components",
"version": "1.10.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3301e5dff520ff25b336874ca6271b642e46d43576bae160bfbe0d6fe25279dd",
"md5": "dca0ed46b3d81f4aaf40c2f60f558124",
"sha256": "e1b1dd4afac69558885a382add4a288e4165a5ecb71d1808e8db0221b014f643"
},
"downloads": -1,
"filename": "aissemble_foundation_pdp_client_python-1.10.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "dca0ed46b3d81f4aaf40c2f60f558124",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 5775,
"upload_time": "2024-11-20T01:03:49",
"upload_time_iso_8601": "2024-11-20T01:03:49.193085Z",
"url": "https://files.pythonhosted.org/packages/33/01/e5dff520ff25b336874ca6271b642e46d43576bae160bfbe0d6fe25279dd/aissemble_foundation_pdp_client_python-1.10.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "530a252523a28a7d358286c56b12a593c793de76bf28afddd57782c05fdb2e2a",
"md5": "8c60d824d679fff19b4cc61e19ea9e66",
"sha256": "447c36986120759acd2a1531a3082103018f47af95c278d881e10e1ac4fb633b"
},
"downloads": -1,
"filename": "aissemble_foundation_pdp_client_python-1.10.0.tar.gz",
"has_sig": false,
"md5_digest": "8c60d824d679fff19b4cc61e19ea9e66",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 4673,
"upload_time": "2024-11-20T01:03:50",
"upload_time_iso_8601": "2024-11-20T01:03:50.056600Z",
"url": "https://files.pythonhosted.org/packages/53/0a/252523a28a7d358286c56b12a593c793de76bf28afddd57782c05fdb2e2a/aissemble_foundation_pdp_client_python-1.10.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-20 01:03:50",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "aissemble-foundation-pdp-client-python"
}