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.0rc6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bd31ad04cace1348c76e0cf56abaf7441084e6392622d689640c9d8b03273cb |
|
MD5 | 2d9e3157a16bba23bbcf5b70191e03b6 |
|
BLAKE2b-256 | 483b008aefcb2abfe632810dd0e38c2b80b6060f613a1a9d554f915bb93e329f |
Close
Hashes for aissemble_foundation_pdp_client_python-1.8.0rc6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54b442320039328c716f1516549bd0e915c3ee38a71c7f92398a4b326691d87f |
|
MD5 | 04a05b999a0c57b0394eeb49a2e92065 |
|
BLAKE2b-256 | 2215fdd0ac5490ef31b4f4187fd6e39f797b95e1fc7e31ca12b2bc3b682cfaa0 |