aissemble-foundation-pdp-client-python


Nameaissemble-foundation-pdp-client-python JSON
Version 1.9.2 PyPI version JSON
download
home_pageNone
SummaryREST Policy Decision Point (PDP) client for Python-based components
upload_time2024-09-26 20:41:01
maintainerNone
docs_urlNone
authoraiSSEMBLE Baseline Community
requires_python<4,>=3.11.4
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## aiSSEMBLE&trade; 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": "<4,>=3.11.4",
    "maintainer_email": null,
    "keywords": null,
    "author": "aiSSEMBLE Baseline Community",
    "author_email": "aissemble@bah.com",
    "download_url": "https://files.pythonhosted.org/packages/01/d1/399c04f01ae7802721193fab8c592c0ede3952a4e0ad496b8a5a19cbceb9/aissemble_foundation_pdp_client_python-1.9.2.tar.gz",
    "platform": null,
    "description": "## aiSSEMBLE&trade; 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.9.2",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b1ebdd72f1ddf7577d492973ab01d5debc17e8bfb71f297ce1b34553e37400d1",
                "md5": "e743e7b8134ed2ee86a4c52c899fa983",
                "sha256": "a143f21b4328b8197655822c4e39d1fc4661ab0e7858b023a87dde66f5a3f7bc"
            },
            "downloads": -1,
            "filename": "aissemble_foundation_pdp_client_python-1.9.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e743e7b8134ed2ee86a4c52c899fa983",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4,>=3.11.4",
            "size": 5749,
            "upload_time": "2024-09-26T20:40:59",
            "upload_time_iso_8601": "2024-09-26T20:40:59.983221Z",
            "url": "https://files.pythonhosted.org/packages/b1/eb/dd72f1ddf7577d492973ab01d5debc17e8bfb71f297ce1b34553e37400d1/aissemble_foundation_pdp_client_python-1.9.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "01d1399c04f01ae7802721193fab8c592c0ede3952a4e0ad496b8a5a19cbceb9",
                "md5": "a481df0460d0c465e9c2440743866d5b",
                "sha256": "30400073d1d699d2f2b0d96171481bafa8f8da80bf91633957bc6d953f637368"
            },
            "downloads": -1,
            "filename": "aissemble_foundation_pdp_client_python-1.9.2.tar.gz",
            "has_sig": false,
            "md5_digest": "a481df0460d0c465e9c2440743866d5b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4,>=3.11.4",
            "size": 4664,
            "upload_time": "2024-09-26T20:41:01",
            "upload_time_iso_8601": "2024-09-26T20:41:01.300769Z",
            "url": "https://files.pythonhosted.org/packages/01/d1/399c04f01ae7802721193fab8c592c0ede3952a4e0ad496b8a5a19cbceb9/aissemble_foundation_pdp_client_python-1.9.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-26 20:41:01",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "aissemble-foundation-pdp-client-python"
}
        
Elapsed time: 0.33837s