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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27fa741fa325431362fce15e8bbea7cb5f2a5f317033314c87277332199c89c2 |
|
MD5 | 409512f5201dc55fa169f0717dd2f52a |
|
BLAKE2b-256 | 1a4778a5da1dec8357a2575c53fb14f434d079c4c5ce1333548d4c7c3a21d643 |
Close
Hashes for aissemble_foundation_pdp_client_python-1.9.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3679348b71009fbce7c9c378a3ac4a419fc490ec1cbddd8042e0798d9a8cfc64 |
|
MD5 | 08406291df656d8d5678d59d863c58c9 |
|
BLAKE2b-256 | 435b924aab0361979578234cbf82da9da4cd688cf60ceb94e652efdebc871df7 |