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.0rc1.tar.gz.

File metadata

File hashes

Hashes for aissemble_foundation_pdp_client_python-1.13.0rc1.tar.gz
Algorithm Hash digest
SHA256 9a44a7599878250fd44c4ce5267b248f123183dbe6025cc37e025917d3c8836c
MD5 3748c2e66c9732afbed3ec4c057e47b7
BLAKE2b-256 197d1f8e71c14630d9087620f975912cf557df4bb737454fa0233e98074a4f27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aissemble_foundation_pdp_client_python-1.13.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 819388f295ba493c0b3d7aefda3e00c2eab55fe874486a196e28b76596cef568
MD5 a12a851967911a33ca902d11249334f8
BLAKE2b-256 1bc1eaa31ebff2f27766539595b6b9a5b80b52ec1d5dd6a0435f92fcb7c07875

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