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.0rc3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 242118136a0d1f3f0ccf29ff5f1262ae33e00b9421fca9eda9ffef611b1043df |
|
MD5 | 4f952fecdea4ee2d2e202292f96dbeff |
|
BLAKE2b-256 | 4aa0b4412273b3e133baf9ca74fc349cecbcb57bd511afe7bac5ea1f1f86fb38 |
Close
Hashes for aissemble_foundation_pdp_client_python-1.8.0rc3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3427a3973d317486a397a880231d57982a03d413c912a2be07ad3a6f6a8e3f43 |
|
MD5 | e7aed7a653b78d22f53d6ed1a757a0c1 |
|
BLAKE2b-256 | 021186bd1544e50f8dcf6e27823e08f100a8e7bda6946b41801a6640999fae66 |