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.0rc4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4592be4fd690623bc3ecfdf3de0343725666b2cac03a81bf6628f8639ba4d51f |
|
MD5 | ec6e00f790d88cefac8f1b831e46b3f5 |
|
BLAKE2b-256 | cc4268fedcc595578c310f672def2a73095d47822aa26b3b7f5ea32e3f6f4d73 |
Close
Hashes for aissemble_foundation_pdp_client_python-1.8.0rc4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed5efb9ad7ce60f3a9cc01c30be5122e974ff5439b61e8e2c4bc8996b58bb37c |
|
MD5 | 29e03cdb7f91a8cc85fdc4b6a9c2c0ed |
|
BLAKE2b-256 | e23c1131307746bb94e8c61129744e2e9014e2ebf964fbc471b5427d4317641a |