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-1.13.0rc2.tar.gz.

File metadata

File hashes

Hashes for aissemble_foundation_pdp_client_python-1.13.0rc2.tar.gz
Algorithm Hash digest
SHA256 aa6b5cf0558d4ecd02a02ca3e9d38c2697c7d674a16e101a617ac3e13bf376de
MD5 a5ca96c0dd543803263d24f9d7a472e2
BLAKE2b-256 a763677a6e573514b17430f2e4c7910dceae3d22b51cdef5dd3e592bda81820d

See more details on using hashes here.

File details

Details for the file aissemble_foundation_pdp_client_python-1.13.0rc2-py3-none-any.whl.

File metadata

File hashes

Hashes for aissemble_foundation_pdp_client_python-1.13.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 be69cf1c58de14bd98ea6208244f802faa898db7e8d96086016db3efb92628f5
MD5 68785c92a1d741c0a259be92e46e6f35
BLAKE2b-256 3cf8b2f0a5ba7153e14d77d20bd66baca189033b73871076bdefd38d5fdffd3f

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