REST Policy Decision Point (PDP) client for Python-based components
Project description
aiSSEMBLE™ Foundation Policy Decision Point Python Client
This module provides a client for authorizing a jwt, action and resource
The following tasks will help you add authentication to your module.
- 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
Release history Release notifications | RSS feed
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
Close
Hashes for aissemble_foundation_pdp_client_python-1.8.0rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f0eddad708e04dd487d149be26708bdb6975887145e772fdf1e3588699d9bff |
|
MD5 | 6fe185fa3983fb9fe2bbd5bf7276b3ff |
|
BLAKE2b-256 | 1f25d1b883ec9b95b2db1f579eab5720dc11bd4b24fb41b763634971b1001657 |
Close
Hashes for aissemble_foundation_pdp_client_python-1.8.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f08bc55e8de14d1ad328669da3d9dd0ed09b8988b206754750f50158ed0915b8 |
|
MD5 | 739486d5b8799659e0927659829f7882 |
|
BLAKE2b-256 | d7293683055b7c9c0643d7b4a78fdcff1451a406d6199d0bf9276f996032a596 |