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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30400073d1d699d2f2b0d96171481bafa8f8da80bf91633957bc6d953f637368 |
|
MD5 | a481df0460d0c465e9c2440743866d5b |
|
BLAKE2b-256 | 01d1399c04f01ae7802721193fab8c592c0ede3952a4e0ad496b8a5a19cbceb9 |
Close
Hashes for aissemble_foundation_pdp_client_python-1.9.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a143f21b4328b8197655822c4e39d1fc4661ab0e7858b023a87dde66f5a3f7bc |
|
MD5 | e743e7b8134ed2ee86a4c52c899fa983 |
|
BLAKE2b-256 | b1ebdd72f1ddf7577d492973ab01d5debc17e8bfb71f297ce1b34553e37400d1 |