## aiSSEMBLE™ Foundation Policy Decision Point Python Client
[](https://pypi.org/project/aissemble-foundation-pdp-client-python/)


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/48/1a/6cbed6273975d70a5a780a2e3b98510c1eccf53c639c2d1f9c70833f2418/aissemble_foundation_pdp_client_python-1.11.1.tar.gz",
"platform": null,
"description": "## aiSSEMBLE™ Foundation Policy Decision Point Python Client\n\n[](https://pypi.org/project/aissemble-foundation-pdp-client-python/)\n\n\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.11.1",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "72d5cac6f7a976d97b2cc459ba54898442fc6a1ab03291c234be8452ae5b1a07",
"md5": "a19d2e92354bfb8b1c7d4de177755f5a",
"sha256": "b2b892caa7c94359fc923ebb99d2a35052b3d4d327727c4f13e2670472e31686"
},
"downloads": -1,
"filename": "aissemble_foundation_pdp_client_python-1.11.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a19d2e92354bfb8b1c7d4de177755f5a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 5775,
"upload_time": "2025-02-10T17:26:54",
"upload_time_iso_8601": "2025-02-10T17:26:54.090195Z",
"url": "https://files.pythonhosted.org/packages/72/d5/cac6f7a976d97b2cc459ba54898442fc6a1ab03291c234be8452ae5b1a07/aissemble_foundation_pdp_client_python-1.11.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "481a6cbed6273975d70a5a780a2e3b98510c1eccf53c639c2d1f9c70833f2418",
"md5": "2c13c84813fdf6c414309f41b8a05d89",
"sha256": "188cc37a87d9801e871234e32b93cca34382182f4f6948c6e5d253aa486b4c13"
},
"downloads": -1,
"filename": "aissemble_foundation_pdp_client_python-1.11.1.tar.gz",
"has_sig": false,
"md5_digest": "2c13c84813fdf6c414309f41b8a05d89",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 4685,
"upload_time": "2025-02-10T17:26:55",
"upload_time_iso_8601": "2025-02-10T17:26:55.101105Z",
"url": "https://files.pythonhosted.org/packages/48/1a/6cbed6273975d70a5a780a2e3b98510c1eccf53c639c2d1f9c70833f2418/aissemble_foundation_pdp_client_python-1.11.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-10 17:26:55",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "aissemble-foundation-pdp-client-python"
}