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

If you're not sure about the file name format, learn more about wheel file names.

File details

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

File metadata

File hashes

Hashes for aissemble_foundation_pdp_client_python-2.0.0.tar.gz
Algorithm Hash digest
SHA256 ecde9bb27f125b6fa5ea17cb9c40e861ed007e3be63dd854acde38ef3e10c0d1
MD5 460330d08f6f0d80c79ac2dfe761c3c1
BLAKE2b-256 bb10f27e6f8e843a80380ac44f753bc8a61e0fed76e4a91afceba4367dc66df8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aissemble_foundation_pdp_client_python-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c00288c86b1decca1cfe973642967d29efcf16a47c76c4bdf1e041293b98fa2f
MD5 0bb22375b9f23f90f12d38bf60018605
BLAKE2b-256 91283b2edad8960ae41ef3bdf63c15c49486690bc6ee289d7ed13ff45a2c53da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page