REST Policy Decision Point (PDP) client for Python-based components
Project description
Python security 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 AiopsSecurityException('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.7.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cab73129e77b1937822dca2252f15fc32ae8369c76031ca19589e52254f8e83 |
|
MD5 | 21963f17d73d68ba8b4093a18a4c6ca7 |
|
BLAKE2b-256 | a1a5550e9fe12d91e4d9a12d48797e5e2e3a6656a348aa6861fc87012b4bded2 |
Close
Hashes for aissemble_foundation_pdp_client_python-1.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08ca6277cdaa02cfae64e977d840c48f4dcad3cde5b6429ee5f6f0f2d2440005 |
|
MD5 | d233b120cf56d472ac2ef29663a50716 |
|
BLAKE2b-256 | 19ce7ade8b31cbf4d44c75853a2b9d040771efb6eec944e41c9f85988a3ecfd2 |