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.1rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 776d449a916f4cbcf5bcf371bba998fbe2f0e17ce08d3f3a7472f0a0b89a0029 |
|
MD5 | 126842b735f34f89880aa0764625b385 |
|
BLAKE2b-256 | 43fd48732984469bdb1529d56f7a39e6ec003c975959a742b847c735a52380ae |
Close
Hashes for aissemble_foundation_pdp_client_python-1.8.1rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1834c02560b0b7b17190efc3bfd7ce15e414b0fa10a5fa140f22d12837cde335 |
|
MD5 | 05a1c83e57024af01cd8690f227cdc6e |
|
BLAKE2b-256 | 31044f27dc1245e51fe6d3c6086b5560ff9d1acefc1df7e1ab210b004371c051 |