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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94dbc4dcebdfa88dabfccbc125bf2e8ec93d064dd1b6d973f679c679984ac485 |
|
MD5 | f33879a421ae97b3451b3a3f2f52d222 |
|
BLAKE2b-256 | 30a5b87f01ba35f034e8cac01571e4304854e559957c6f11ec742e9330948c52 |
Close
Hashes for aissemble_foundation_pdp_client_python-1.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e18c4ecee9e67f2da2557b6ca7520c21c132b15f94b383426a47f2b5a7ef3f4a |
|
MD5 | c2a13b6d826c75568a9e18ef014fa357 |
|
BLAKE2b-256 | ecb3abdde4f4644540163a71e0ac67eb963a82388cb1a3bfca7797099c670340 |