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.0rc5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e00ec56315d47947c1ba842cdb2367c3fff420c9463b0b39cb32649169311078 |
|
MD5 | ce061d40dbfc0d9c5e543c36c2c7d497 |
|
BLAKE2b-256 | fd74786bc0e62ae9c829b61dfb5b540960dc22eaebd41e391019c4fad0c19105 |
Close
Hashes for aissemble_foundation_pdp_client_python-1.8.0rc5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a106d237986a021a1ced5a2a69ba198d3e82ac8e1bfe90812d40068a7069f066 |
|
MD5 | 712089a711653857ff3a9ca67ca0b4db |
|
BLAKE2b-256 | a631dce24e8512dba9371b9e9445bc9d728abc03a0ebd5e851ac58e4c77a805d |