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.0rc8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4a12c9b433750803be5024ffb9d5702045e460a90513915aed2f80e18f15614 |
|
MD5 | e23f72fb9dad89a9b0d5b2e6b45ccce3 |
|
BLAKE2b-256 | 71eec119b46e3c7cfedddef1a97603a42f53c624f9f7fbceca2d2340d5bb7da7 |
Close
Hashes for aissemble_foundation_pdp_client_python-1.8.0rc8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3cd4e0446d135d51e8e115e148fe466019c1e9a2aa8851088a91e4daa7cb56b |
|
MD5 | 9d1f6c4b44db35a38f47679f3c2d811a |
|
BLAKE2b-256 | de48ba1392b3905e23dbffc7b882f03c5a19975e55059fe1e031aac525c21eaa |