Skip to main content

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

Project description

Python security client

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 AiopsSecurityException('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.7.0.dev1715242797.tar.gz.

File metadata

File hashes

Hashes for aissemble_foundation_pdp_client_python-1.7.0.dev1715242797.tar.gz
Algorithm Hash digest
SHA256 af7a692f8ff5b4367c1f380a465b35d285304df727842ce6fd288c41c850c282
MD5 3f9250a106015e4ec7c58abbab4d43ee
BLAKE2b-256 8594a6d47881732b077f9401e5d3c9c0d51329a1fddd38edf6988574925777f5

See more details on using hashes here.

File details

Details for the file aissemble_foundation_pdp_client_python-1.7.0.dev1715242797-py3-none-any.whl.

File metadata

File hashes

Hashes for aissemble_foundation_pdp_client_python-1.7.0.dev1715242797-py3-none-any.whl
Algorithm Hash digest
SHA256 e23fc12cc2cb9f6e25a5e35fe415934a4f6b7ebebc6aca55e5d9bba900b1dac5
MD5 c4baa2e1ee634a2fd081544d6cd1842c
BLAKE2b-256 cf4e0be39a088ac866686f0d853f0667db7b1612c7f43772264fbf7e5ae57ba7

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