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
File details
Details for the file aissemble_foundation_pdp_client_python-1.10.0rc2.tar.gz
.
File metadata
- Download URL: aissemble_foundation_pdp_client_python-1.10.0rc2.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.11.4 Linux/5.10.220-209.869.amzn2.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 837d7254f6a291d4fe9ca59a4f5acfb807cfc0ce36b6e30dbcb9aceaa009295f |
|
MD5 | df5c5f8543454b3e603511f5e4a93571 |
|
BLAKE2b-256 | 7f9aa9e6ee6388755a83727c8799ee31bb1d2d14f8fb3b33a7f01a06454c1094 |
File details
Details for the file aissemble_foundation_pdp_client_python-1.10.0rc2-py3-none-any.whl
.
File metadata
- Download URL: aissemble_foundation_pdp_client_python-1.10.0rc2-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.11.4 Linux/5.10.220-209.869.amzn2.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57cec5f134120a6e19b27bda7c0d5bdc8605837dc26881a477dd44d8b4aa68de |
|
MD5 | cdd0adee65bc078515ce312099df7e4f |
|
BLAKE2b-256 | 576a55919b95ad646e2ed12faae44cc6ce10a6d65bfda2d22c43732d86726a23 |