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.0rc7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 168f2a71a2506cdcf4e2403aa89520ad97c7f5ab95929c382d8159fca8358fcf |
|
MD5 | de7ccf8a60d2e2c015e757a430a2b632 |
|
BLAKE2b-256 | 5b4d5bd6b34f563fdb476bda16781c290f86770269a8811461e60c9da9390b3d |
Close
Hashes for aissemble_foundation_pdp_client_python-1.8.0rc7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21676fdfac3b604aa888d58c073b788f6918be153a5b0e725772d5148a29d4f5 |
|
MD5 | b40cc696eb177fee47b0d1974126b1c2 |
|
BLAKE2b-256 | 323524591f40b98b23ad2181cb7efb722ffd1c94f39349ef2c474c5e51cb5489 |