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.9.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff81e5d7a81203f8be96cd5927298eefde58041feb1622e3415e361dc9b3985e |
|
MD5 | 68e9e8b43cd8ba6c7009d781bbeb56e3 |
|
BLAKE2b-256 | e8eb247ab7b87052c799b6f0f13bd1c1a7a49c967cb9da0bca811eef01e4d83b |
Close
Hashes for aissemble_foundation_pdp_client_python-1.9.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41eb9829526fc58a11a890fd4feddf3c745df37448bbd1083142ca643d6f0c6f |
|
MD5 | 8b0ae7151bb1b130a439ca124d6c6cc3 |
|
BLAKE2b-256 | 28d6ae3dd779135251e675147d7c03fcb7aee4c7cf1c6f95b105f34e482f3e60 |