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.10.0rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 712f02658e8e09a5d320909e22b02e8faf1273100fc598caa6e05845e816efd0 |
|
MD5 | 2e5e05f5b81fbf26db3fc5d9f5b8b250 |
|
BLAKE2b-256 | b3fa05800a85f07634e6d95b941f663a750682f4bd930103d86a31316eb185a6 |
Close
Hashes for aissemble_foundation_pdp_client_python-1.10.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c989aca66b1d35bb0306fb144101227c36b16d3a0a57d65dd7c08d448db807a |
|
MD5 | c666c32ae976375c60674930bb9eb3fc |
|
BLAKE2b-256 | 0f68dad32109ed0385ba6e5d1603c463fb393b974fc56b9a6691f77f36a72b4d |