Skip to main content

REST Policy Decision Point (PDP) client for Python-based components

Project description

aiSSEMBLE™ Foundation Policy Decision Point Python Client

PyPI PyPI - Python Version PyPI - Wheel

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
        # 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')
    

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

Built Distribution

File details

Details for the file aissemble_foundation_pdp_client_python-1.10.0.tar.gz.

File metadata

File hashes

Hashes for aissemble_foundation_pdp_client_python-1.10.0.tar.gz
Algorithm Hash digest
SHA256 447c36986120759acd2a1531a3082103018f47af95c278d881e10e1ac4fb633b
MD5 8c60d824d679fff19b4cc61e19ea9e66
BLAKE2b-256 530a252523a28a7d358286c56b12a593c793de76bf28afddd57782c05fdb2e2a

See more details on using hashes here.

File details

Details for the file aissemble_foundation_pdp_client_python-1.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aissemble_foundation_pdp_client_python-1.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1b1dd4afac69558885a382add4a288e4165a5ecb71d1808e8db0221b014f643
MD5 dca0ed46b3d81f4aaf40c2f60f558124
BLAKE2b-256 3301e5dff520ff25b336874ca6271b642e46d43576bae160bfbe0d6fe25279dd

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