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.0rc2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bbc1f3452a19e3c544f24fad1503486de09ee5af0b0b45e00f255dca1f4a5cd |
|
MD5 | 4a8334fa216d1c572a20e39dc665e115 |
|
BLAKE2b-256 | cfda0fc84767488074254909ac556a3f7c11957d1ef6bb8b33f6ecdfede6de2b |
Close
Hashes for aissemble_foundation_pdp_client_python-1.7.0rc2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd05ed461a5137296595e5a16bc638a4fd84f0c82ab6774e58f7a07616f8e8aa |
|
MD5 | 4b774a45fa282bb815618354e6fe0d04 |
|
BLAKE2b-256 | 23aa81491cb30a3787401466d54e25af7680606f5c298cf9d8b74d96a4ef8f16 |