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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56941e822e9955a019867eec180761562b1429bc585e4becd287028403d77d38 |
|
MD5 | d2ddbe90185db02c3cc5768af15e9b2d |
|
BLAKE2b-256 | a735cb8c968b41fffe9ed0887d47c98b993106469b6e3cb9039d9e6ff89681c9 |
Close
Hashes for aissemble_foundation_pdp_client_python-1.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90b43974f798b939a2d364c554927e76e949c7eb5ad179f5966fa79e1bfae6f9 |
|
MD5 | 2ed6bfacc1a91137fd1c90f488cb5f4d |
|
BLAKE2b-256 | 3ef35e67d56dd79ad8a297a755468a87bb5218ac3b70c924f486e66f9aa0a431 |