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.0rc4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 133f6e15b3cc61dd7233772b8c9eb065e3e235776fc89250661c2f6ad30df371 |
|
MD5 | 826e336df01e0887ec8de1321430c5f4 |
|
BLAKE2b-256 | 2c7fcf750b838e33969f857f39bb7235d736bced4fa17a76015bf3d300a96e3f |
Close
Hashes for aissemble_foundation_pdp_client_python-1.7.0rc4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dfb9eb7fa9e124579c9793af6a472ec035125cfc03b3aa215ef0e035e08d2c6 |
|
MD5 | fb3afabfc0da3920520f9e1edbd3cdf1 |
|
BLAKE2b-256 | f31e734d9cee69c928afafbeef43693528507bfdde75f3ed639c738a0e3ab6cb |