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

File metadata

File hashes

Hashes for aissemble_foundation_pdp_client_python-1.13.0rc6.tar.gz
Algorithm Hash digest
SHA256 8afdf67986274c9103f2a2a17718dac5edeb6d26fb09a382d0a9dc961cd63a61
MD5 81ccb70eb2ce4cdef2baf4126ddac7b3
BLAKE2b-256 4c66c8ef60c6df428bada4d65f918b2038504c57d23bc8599ca98f3e7280c682

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aissemble_foundation_pdp_client_python-1.13.0rc6-py3-none-any.whl
Algorithm Hash digest
SHA256 0cd9cd2af4cdc71930caa587371678e69c718e31d74990aae09979e510bcccbe
MD5 d9b05950963aaa591d1fe88d2d83796d
BLAKE2b-256 5f8b04f43113bf2eed947d8dd5b20b49f46e9dc0f223c517320549a64fe7b864

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