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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c86de841561ba0d83ee471ea3fedf735d8f9da951ba4dca02db088be936b6834 |
|
MD5 | 8ecd2ee95068933728ed39ffce0d92f8 |
|
BLAKE2b-256 | f69f19e156841860166a4faf2e45fcdb27670ab7b8c8cfddc97c5ccf3add5866 |
Close
Hashes for aissemble_foundation_pdp_client_python-1.9.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3332b21c185f346cdcbf13d2d8338a4f4b470c9f89ff7c2b36b5698eb100e196 |
|
MD5 | f9a985887d6b992f4e953823fd27643c |
|
BLAKE2b-256 | e3b6d1472fa83a0e5108ace7cd750a8e674c687fddd26285ec6e9b3b4ab4cbf2 |