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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b137317a18f01fd0794b4ab9c6b70ec1b57e31925020d1e60f3c6fb0f45462a9 |
|
MD5 | de8f3823c1fd7635ac2e76e22932dac0 |
|
BLAKE2b-256 | 681e5f20892cfef106bfca462a76cb736562a6c179eb55cc6dd32f13e5a8a978 |
Close
Hashes for aissemble_foundation_pdp_client_python-1.8.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c68d96760348cc4b367c741c3551b58397052e2a407a222ff0d2f3b6547d0f62 |
|
MD5 | 6de8d7a9dba7f2370783f4d0403bcc27 |
|
BLAKE2b-256 | 2bac4267d24bb80f3145403ec59ad891cafe1215a6fa73155083c86e67e0bfb3 |